Previously, we call this sequence.
frame#1
- ObjectDestroyed (mRunning = AGING)
- ResetToBaseValue (mRunning = STOPPED)
- IsFinished (mRunning <= STOPPED --> finished!)
That mean, this property resetter works only 1 frame.
Now make age down on IsFinished function, so age works 2 frames.
frame#1
- ObjectDestroyed (mRunning = AGING)
- ResetToBaseValue (mRunning = AGING)
- IsFinished (mRunning = STOPPED --> not finished!)
frame#2
- ResetToBaseValue (mRunning = STOPPED)
- IsFinished (mRunning <= STOPPED --> finished!)
Change-Id: Ie938df6088c4d73087fc138d29ebbf93df7f8dc7
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
mBaseProperty->ResetToBaseValue(updateBufferIndex);
}
-
- if(mRunning == AGING)
- {
- // If this resetter is aging now, make it as stopped.
- // Now we can assume that this PropertyResetter is finished.
- mRunning = STOPPED;
- }
};
/**
*/
virtual bool IsFinished()
{
- return mRunning <= STOPPED;
+ const bool finished = mRunning <= STOPPED;
+ if(mRunning == AGING)
+ {
+ // If this resetter is aging now, make it as stopped.
+ // Now we can assume that this PropertyResetter is finished next frame.
+ mRunning = STOPPED;
+ }
+ return finished;
}
enum