mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2025-12-31 00:10:44 -06:00
Make openspace.fadeOut also disable the object at end of fade
Needed when we now start using this function in the UI
This commit is contained in:
@@ -317,8 +317,15 @@ openspace.fadeOut = function(identifier, fadeTime, endScript)
|
||||
|
||||
-- If node is already disabled we don't have to do anything
|
||||
if isEnabled then
|
||||
openspace.setPropertyValue(fadeProperty, 0.0, fadeTime, "Linear", endScript)
|
||||
end
|
||||
local disableScript = "openspace.setPropertyValue('" .. enabledProperty .. "', false)"
|
||||
openspace.setPropertyValue(
|
||||
fadeProperty,
|
||||
0.0,
|
||||
fadeTime,
|
||||
"Linear",
|
||||
disableScript .. endScript
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
openspace.toggleFade = function(renderable, fadeTime, endScript)
|
||||
|
||||
Reference in New Issue
Block a user