fixed ControlAnimator problem
authorDae Young Ryu <karzia@samsung.com>
Tue, 22 Oct 2013 10:24:35 +0000 (19:24 +0900)
committerDae Young Ryu <karzia@samsung.com>
Tue, 22 Oct 2013 10:24:35 +0000 (19:24 +0900)
Change-Id: I85ba6eacf46b674a734e55199f497fe01a5a6353
Signed-off-by: Dae Young Ryu <karzia@samsung.com>
src/ui/animations/FUiAnim_FrameAnimatorImpl.cpp

index eddea40..66527de 100644 (file)
@@ -732,6 +732,11 @@ _FrameAnimatorImpl::StartLayerAnimation(VisualElement* pLayer, AnimationTargetTy
 
        SysTryCatch(NID_UI_ANIM, (pVePropType), r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Animation property type is invalid.");
        propAnimation->SetPropertyName(pVePropType);
+       if(!propAnimation->GetStartValue().IsEmpty())
+       {
+               _VisualElementImpl* pImpl = _VisualElementImpl::GetInstance(*pLayer);
+               pImpl->GetPresentation()->SetPropertyI(*pVePropType, propAnimation->GetStartValue());
+       }
 
        r = pLayer->AddAnimation(animName, *propAnimation);
        SysTryCatch(NID_UI_ANIM, (r == E_SUCCESS), r = E_SYSTEM, r, "[E_SYSTEM] A system error has been occurred. Failed to add animation to visual element.");