Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -11,6 +11,7 @@ · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | #include "EntityScriptingInterface.h" |
| 13 | 13 | #include "EntityTree.h" |
| 14 | +#include "LightEntityItem.h" | |
| 14 | 15 | #include "ModelEntityItem.h" |
| 15 | 16 | |
| 16 | 17 | EntityScriptingInterface::EntityScriptingInterface() : |
| @@ -226,16 +227,11 @@ RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersectionWorke · 209 unmodified lines | ||
| 226 | 227 | } |
| 227 | 228 | |
| 228 | 229 | void EntityScriptingInterface::setLightsArePickable(bool value) { |
| 229 | − if (_entityTree) { | |
| 230 | − _entityTree->setLightsArePickable(value); | |
| 231 | − } | |
| 230 | + LightEntityItem::setLightsArePickable(value); | |
| 232 | 231 | } |
| 233 | 232 | |
| 234 | 233 | bool EntityScriptingInterface::getLightsArePickable() const { |
| 235 | − if (_entityTree) { | |
| 236 | − return _entityTree->getLightsArePickable(); | |
| 237 | − } | |
| 238 | − return false; | |
| 234 | + return LightEntityItem::getLightsArePickable(); | |
| 239 | 235 | } |
| 240 | 236 | |
| 241 | 237 | |