Revert "[Tizen] Use Handle::GetCurrentProperty instead of Devel API" 63/131763/1
authorJinho, Lee <jeano.lee@samsung.com>
Tue, 30 May 2017 11:27:05 +0000 (20:27 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Tue, 30 May 2017 11:27:34 +0000 (20:27 +0900)
This reverts commit 114be157fb6cb98020c81b541de9da824ee89371.

Change-Id: I18fd0f5beb5c7707b1077a81266a46569bba264f

examples/blocks/blocks-example.cpp

index e22260d..ed7195f 100644 (file)
@@ -25,6 +25,8 @@
 #include <dali-toolkit/dali-toolkit.h>
 #include "shared/view.h"
 
+#include <dali/devel-api/object/handle-devel.h>
+
 using namespace Dali;
 using namespace Dali::Toolkit;
 using namespace DemoHelper;
@@ -742,7 +744,7 @@ private:
   void OnHitPaddle(PropertyNotification& source)
   {
     Actor delegate = Actor::DownCast(source.GetTarget());
-    Vector3 collisionVector = delegate.GetCurrentProperty< Vector3 >( source.GetTargetProperty() );
+    Vector3 collisionVector = DevelHandle::GetCurrentProperty< Vector3 >( delegate, source.GetTargetProperty() );
     Vector3 ballRelativePosition(mBall.GetCurrentPosition() - mPaddle.GetCurrentPosition());
     ballRelativePosition.Normalize();
 
@@ -777,7 +779,7 @@ private:
   void OnHitBrick(PropertyNotification& source)
   {
     Actor brick = Actor::DownCast(source.GetTarget());
-    Vector3 collisionVector = brick.GetCurrentProperty< Vector3 >( source.GetTargetProperty() );
+    Vector3 collisionVector = DevelHandle::GetCurrentProperty< Vector3 >( brick, source.GetTargetProperty() );
 
     const float normalVelocity = fabsf(mBallVelocity.Dot(collisionVector));
     mBallVelocity += collisionVector * normalVelocity * 2.0f;