X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-scene-loader%2Fpublic-api%2Fanimated-property.cpp;h=3d1542dabfa5d06e08d6fa4896a1965b991ce7b7;hp=1e8a592661d44c118f96db14ac832a382bf7269c;hb=f2039d47f9bed8104575da80a2ecf0bb6e37ff8d;hpb=f3e45e41c5f16ccc2538b283897ed6efb07e4ea9 diff --git a/dali-scene-loader/public-api/animated-property.cpp b/dali-scene-loader/public-api/animated-property.cpp index 1e8a592..3d1542d 100644 --- a/dali-scene-loader/public-api/animated-property.cpp +++ b/dali-scene-loader/public-api/animated-property.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -20,19 +20,18 @@ namespace Dali { namespace SceneLoader { - void AnimatedProperty::Animate(Animation& anim, GetActor getActor) { - if (Actor actor = getActor(mNodeName)) + if(Actor actor = getActor(mNodeName)) { Property prop = GetProperty(actor); - if (mKeyFrames) + if(mKeyFrames) { anim.AnimateBetween(prop, mKeyFrames, mAlphaFunction, mTimePeriod); } - else if (mValue) + else if(mValue) { - if (mValue->mIsRelative) + if(mValue->mIsRelative) { anim.AnimateBy(prop, mValue->mValue, mAlphaFunction, mTimePeriod); } @@ -44,5 +43,5 @@ void AnimatedProperty::Animate(Animation& anim, GetActor getActor) } } -} -} +} // namespace SceneLoader +} // namespace Dali