Revert "[Tizen](Vector) Ensure the current frame is not out of the play range"
authorWonsik Jung <sidein@samsung.com>
Thu, 19 Dec 2019 02:27:58 +0000 (11:27 +0900)
committerWonsik Jung <sidein@samsung.com>
Thu, 19 Dec 2019 02:27:58 +0000 (11:27 +0900)
This reverts commit ad314f8d50d653a269158e01ecf3f89b002d8876.

dali-toolkit/internal/visuals/animated-vector-image/vector-animation-task.cpp

index ef8a18e..a0e1356 100644 (file)
@@ -40,8 +40,6 @@ namespace
 constexpr auto LOOP_FOREVER = -1;
 constexpr auto NANOSECONDS_PER_SECOND( 1e+9 );
 
-#define CLAMP( x, low, high ) ( ( ( x ) > ( high ) ) ? ( high ) : ( ( ( x ) < ( low ) ) ? ( low ) : ( x ) ) )
-
 #if defined(DEBUG_ENABLED)
 Debug::Filter* gVectorAnimationLogFilter = Debug::Filter::New( Debug::NoLogging, false, "LOG_VECTOR_ANIMATION" );
 #endif
@@ -378,7 +376,6 @@ bool VectorAnimationTask::Rasterize()
     if( mPlayState == PlayState::PLAYING && mUpdateFrameNumber )
     {
       mCurrentFrame = mForward ? mCurrentFrame + 1 : mCurrentFrame - 1;
-      mCurrentFrame = CLAMP( mCurrentFrame, mStartFrame, mEndFrame );
     }
 
     currentFrame = mCurrentFrame;