From 426bc90488b3d6984a98361cc48a7b3257d91d58 Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Tue, 30 May 2017 20:27:05 +0900 Subject: [PATCH] Revert "[Tizen] Use Handle::GetCurrentProperty instead of Devel API" This reverts commit 114be157fb6cb98020c81b541de9da824ee89371. Change-Id: I18fd0f5beb5c7707b1077a81266a46569bba264f --- examples/blocks/blocks-example.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/blocks/blocks-example.cpp b/examples/blocks/blocks-example.cpp index e22260d..ed7195f 100644 --- a/examples/blocks/blocks-example.cpp +++ b/examples/blocks/blocks-example.cpp @@ -25,6 +25,8 @@ #include #include "shared/view.h" +#include + 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; -- 2.7.4