call _updateLighting
This commit is contained in:
@@ -442,7 +442,10 @@
|
||||
(director.showLighting scene.time allLightSources scene.camera)))
|
||||
|
||||
(method _showScene [:Scene<Set,Actor,Prop,Camera> scene :Appearance appearance :Camera camera :Continuation cc]
|
||||
|
||||
(let [cc
|
||||
(makeCC cc
|
||||
(_updateLighting)
|
||||
(cc))]
|
||||
// Show current scene background
|
||||
(director.showSet scene.set scene.time scene.perspective appearance camera
|
||||
(makeCC cc
|
||||
@@ -454,11 +457,10 @@
|
||||
(makeCC cc
|
||||
// show current scene props, etc.
|
||||
(_ccForEach
|
||||
scene.propOrder
|
||||
->[:String propKey :Continuation cc]
|
||||
(let [p (dictGet scene.props propKey)]
|
||||
(director.showProp p.prop p.position ReAppearance .camera (_currentScene) cc))
|
||||
cc))))))
|
||||
cc)))))))
|
||||
|
||||
(prop &mut :Bool paused false)
|
||||
(prop &mut :Continuation onComplete null)
|
||||
@@ -852,8 +854,7 @@
|
||||
(let [arr (lightSources.get sceneKey)]
|
||||
(arr.elements.push source)
|
||||
(lightSources.put sceneKey arr)
|
||||
(director.hideLighting)
|
||||
(director.showLighting .time (_currentScene) arr.elements .camera (_currentScene))
|
||||
(_updateLighting)
|
||||
(cc))
|
||||
}))
|
||||
(shortcutHandler.registerItem "[d]efine [l]ight source" defineLightSource)
|
||||
@@ -870,8 +871,7 @@
|
||||
(let [ls (dictGet stringMap choice)]
|
||||
(arr.elements.remove ls)
|
||||
(lightSources.put sceneKey arr)
|
||||
(director.hideLighting)
|
||||
(director.showLighting .time (_currentScene) arr.elements .camera (_currentScene))
|
||||
(_updateLighting)
|
||||
(cc))))))
|
||||
(shortcutHandler.registerItem "[r]emove [l]ight source" removeLightSource)
|
||||
|
||||
|
Reference in New Issue
Block a user