Make to use Size of source for transition. 18/265618/2
authorseungho <sbsh.baek@samsung.com>
Mon, 25 Oct 2021 08:46:37 +0000 (17:46 +0900)
committerseungho <sbsh.baek@samsung.com>
Mon, 25 Oct 2021 23:48:47 +0000 (08:48 +0900)
 - currently GetCurrentProperty is used to get size of source.
 - but, when source is a control to be transitioned, it could be 0, 0, 0.

Change-Id: Ic91c83afa7ee08a9acfb152b5078af115667ae9b
Signed-off-by: seungho <sbsh.baek@samsung.com>
dali-toolkit/internal/transition/transition-impl.cpp

index fbe1789..78ba8db 100644 (file)
@@ -121,7 +121,7 @@ void Transition::OnPlay()
   finishPropertyMap.Insert(Dali::Actor::Property::COLOR, destinationColor);
 
   // Set animation for other properties if source and destination is different.
   finishPropertyMap.Insert(Dali::Actor::Property::COLOR, destinationColor);
 
   // Set animation for other properties if source and destination is different.
-  Vector3 sourceSize      = sourceControl.GetCurrentProperty<Vector3>(Dali::Actor::Property::SIZE);
+  Vector3 sourceSize      = sourceControl[Dali::Actor::Property::SIZE];
   Vector3 destinationSize = destinationControl[Dali::Actor::Property::SIZE];
   if(sourceSize != destinationSize)
   {
   Vector3 destinationSize = destinationControl[Dali::Actor::Property::SIZE];
   if(sourceSize != destinationSize)
   {