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 | #include "EntityScriptingInterface.h" | 12 | #include "EntityScriptingInterface.h" |
| 13 | #include "EntityTree.h" | 13 | #include "EntityTree.h" |
| 14 | #include "LightEntityItem.h" | ||
| 14 | #include "ModelEntityItem.h" | 15 | #include "ModelEntityItem.h" |
| 15 | 16 | ||
| 16 | EntityScriptingInterface::EntityScriptingInterface() : | 17 | EntityScriptingInterface::EntityScriptingInterface() : |
| @@ -226,16 +227,11 @@ RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersectionWorke · 209 unmodified lines | |||
| 226 | } | 227 | } |
| 227 | 228 | ||
| 228 | void EntityScriptingInterface::setLightsArePickable(bool value) { | 229 | void EntityScriptingInterface::setLightsArePickable(bool value) { |
| 229 | if (_entityTree) { | 230 | LightEntityItem::setLightsArePickable(value); |
| 230 | _entityTree->setLightsArePickable(value); | ||
| 231 | } | ||
| 232 | } | 231 | } |
| 233 | 232 | ||
| 234 | bool EntityScriptingInterface::getLightsArePickable() const { | 233 | bool EntityScriptingInterface::getLightsArePickable() const { |
| 235 | if (_entityTree) { | 234 | return LightEntityItem::getLightsArePickable(); |
| 236 | return _entityTree->getLightsArePickable(); | ||
| 237 | } | ||
| 238 | return false; | ||
| 239 | } | 235 | } |
| 240 | 236 | ||
| 241 | 237 | ||