(Animation) Updates following DestroyAction removal 10/28210/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 30 Sep 2014 09:36:32 +0000 (10:36 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 30 Sep 2014 09:39:16 +0000 (10:39 +0100)
Change-Id: I0683b34b0629ebcc154370c0d1313b96f08259cb

demo/dali-table-view.cpp
examples/motion/motion-blur-example.cpp
examples/motion/motion-stretch-example.cpp

index 00bda38..4014b55 100644 (file)
@@ -606,7 +606,7 @@ bool DaliTableView::OnTilePressed( Actor actor, const TouchEvent& event )
     if( consumed )
     {
       mPressedAnimation = Animation::New( BUTTON_PRESS_ANIMATION_TIME );
-      mPressedAnimation.SetDestroyAction( Animation::Discard );
+      mPressedAnimation.SetEndAction( Animation::Discard );
 
       // scale the content actor within the Tile, as to not affect the placement within the Table.
       Actor content = actor.GetChildAt(0);
index b10334c..837fb92 100644 (file)
@@ -306,7 +306,6 @@ public:
       {
         // has parent so we expect it to be on stage, start animation
         mRotateAnimation = Animation::New( ORIENTATION_DURATION );
-        mRotateAnimation.SetDestroyAction( Animation::Bake );
         mRotateAnimation.RotateTo( mView, Degree( -orientation ), Vector3::ZAXIS, AlphaFunctions::EaseOut );
         mRotateAnimation.Resize( mView, targetSize.width, targetSize.height );
         mRotateAnimation.Play();
index 3ff484e..549e912 100644 (file)
@@ -219,7 +219,6 @@ public:
       {
         // has parent so we expect it to be on stage, start animation
         mRotateAnimation = Animation::New( ORIENTATION_DURATION );
-        mRotateAnimation.SetDestroyAction( Animation::Bake );
         mRotateAnimation.RotateTo( mView, Degree( -orientation ), Vector3::ZAXIS, AlphaFunctions::EaseOut );
         mRotateAnimation.Resize( mView, targetSize.width, targetSize.height );
         mRotateAnimation.Play();