Kaydet (Commit) 19da52d0 authored tarafından Marco Cecchetti's avatar Marco Cecchetti

Now the rewind option is handled by the JavaScript engine too.

üst 1ef95a72
...@@ -5799,6 +5799,8 @@ AnimationBaseNode.prototype.deactivate_st = function( eDestState ) ...@@ -5799,6 +5799,8 @@ AnimationBaseNode.prototype.deactivate_st = function( eDestState )
{ {
if( this.aActivity ) if( this.aActivity )
this.aActivity.dispose(); this.aActivity.dispose();
if( ( this.getFillMode() == FILL_MODE_REMOVE ) && this.getAnimatedElement() )
this.removeEffect();
} }
}; };
...@@ -6202,6 +6204,8 @@ BaseContainerNode.prototype.deactivate_st = function( eDestState ) ...@@ -6202,6 +6204,8 @@ BaseContainerNode.prototype.deactivate_st = function( eDestState )
{ {
// end all children that are not ENDED: // end all children that are not ENDED:
this.forEachChildNode( mem_fn( 'end' ), ~ENDED_NODE ); this.forEachChildNode( mem_fn( 'end' ), ~ENDED_NODE );
if( this.getFillMode() == FILL_MODE_REMOVE )
this.forEachChildNode( mem_fn( 'removeEffect' ), ENDED_NODE );
} }
}; };
...@@ -8562,6 +8566,7 @@ AnimatedElement.prototype.setTo = function( nNewState ) ...@@ -8562,6 +8566,7 @@ AnimatedElement.prototype.setTo = function( nNewState )
this.nScaleFactorX = aBBox.width / aBaseBBox.width; this.nScaleFactorX = aBBox.width / aBaseBBox.width;
this.nScaleFactorY = aBBox.height / aBaseBBox.height; this.nScaleFactorY = aBBox.height / aBaseBBox.height;
} }
return bRet;
}; };
AnimatedElement.prototype.getBaseBBox = function() AnimatedElement.prototype.getBaseBBox = function()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment