X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fanimation%2Fkey-frames-impl.cpp;h=ac1bd939ea772cd749ad4e6d99bdc25ff6e1b031;hb=41e9a0ad46f71f270f69e75a08098f5105275cd3;hp=031495e69d4369e6434bc111384cc79c0b6383e9;hpb=7b2614e862b16ec1248cbc3d781fdfd6e5ce9edf;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/animation/key-frames-impl.cpp b/dali/internal/event/animation/key-frames-impl.cpp index 031495e..ac1bd93 100644 --- a/dali/internal/event/animation/key-frames-impl.cpp +++ b/dali/internal/event/animation/key-frames-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,7 +82,7 @@ void KeyFrames::CreateKeyFramesSpec(Property::Type type) } default: { - DALI_ABORT( "Type not animateable" ); + DALI_ABORT( "Property type is not animatable" ); break; } } @@ -160,5 +160,18 @@ KeyFrameSpec* KeyFrames::GetKeyFramesBase() const return mKeyFrames.Get(); } +Property::Value KeyFrames::GetLastKeyFrameValue() const +{ + Property::Value value; + + std::size_t noOfKeyFrames = mKeyFrames->GetNumberOfKeyFrames(); + if( noOfKeyFrames ) + { + mKeyFrames->GetKeyFrameAsValue( noOfKeyFrames - 1, value ); + } + + return value; +} + } // Internal } // Dali