Showing the changes to libraries/script-engine/src/SceneScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -64,4 +64,18 @@ float SceneScriptingInterface::getSunIntensity() const { · 63 unmodified lines | ||
| 64 | 64 | |
| 65 | 65 | model::SunSkyStagePointer SceneScriptingInterface::getSkyStage() const { |
| 66 | 66 | return _skyStage; |
| 67 | +} | |
| 68 | + | |
| 69 | +void SceneScriptingInterface::setShouldRenderAvatars(bool shouldRenderAvatars) { | |
| 70 | + if (shouldRenderAvatars != _shouldRenderAvatars) { | |
| 71 | + _shouldRenderAvatars = shouldRenderAvatars; | |
| 72 | + emit shouldRenderAvatarsChanged(_shouldRenderAvatars); | |
| 73 | + } | |
| 74 | +} | |
| 75 | + | |
| 76 | +void SceneScriptingInterface::setShouldRenderEntities(bool shouldRenderEntities) { | |
| 77 | + if (shouldRenderEntities != _shouldRenderEntities) { | |
| 78 | + _shouldRenderEntities = shouldRenderEntities; | |
| 79 | + emit shouldRenderEntitiesChanged(_shouldRenderEntities); | |
| 80 | + } | |
| 67 | 81 | } |