The TweenChainBuilder was incorrectly setting the persist flag on the Chain to true, which goes against what the documentation says. It now correctly sets it to false. This means if you previously had a Tween Chain that was persisting, it will no longer do so, so add the property to regain the feature.

This commit is contained in:
Richard Davey 2024-01-12 17:43:51 +00:00
parent 47d393ac29
commit 74515f6437

View file

@ -41,7 +41,7 @@ var TweenChainBuilder = function (parent, config)
chain.loop = Math.round(GetAdvancedValue(config, 'loop', GetValue(config, 'repeat', 0)));
chain.loopDelay = Math.round(GetAdvancedValue(config, 'loopDelay', GetValue(config, 'repeatDelay', 0)));
chain.paused = GetBoolean(config, 'paused', false);
chain.persist = GetBoolean(config, 'persist', true);
chain.persist = GetBoolean(config, 'persist', false);
// Set the Callbacks
chain.callbackScope = GetValue(config, 'callbackScope', chain);