From 00d626babc4777951e1b75a6f9ee90e502940c38 Mon Sep 17 00:00:00 2001 From: "minho.sun" Date: Mon, 22 May 2017 15:22:21 +0900 Subject: [PATCH] Use Handle::GetCurrentProperty instead of Devel API DevelHandle::GetCurrentProperty is moved to public. So, use Handle::GetCurrentProperty instead of devel. Change-Id: I9747e0b068ff907b8488d814f08769cf89f2e84e Signed-off-by: minho.sun --- examples/blocks/blocks-example.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/blocks/blocks-example.cpp b/examples/blocks/blocks-example.cpp index ed7195f..e22260d 100644 --- a/examples/blocks/blocks-example.cpp +++ b/examples/blocks/blocks-example.cpp @@ -25,8 +25,6 @@ #include #include "shared/view.h" -#include - using namespace Dali; using namespace Dali::Toolkit; using namespace DemoHelper; @@ -744,7 +742,7 @@ private: void OnHitPaddle(PropertyNotification& source) { Actor delegate = Actor::DownCast(source.GetTarget()); - Vector3 collisionVector = DevelHandle::GetCurrentProperty< Vector3 >( delegate, source.GetTargetProperty() ); + Vector3 collisionVector = delegate.GetCurrentProperty< Vector3 >( source.GetTargetProperty() ); Vector3 ballRelativePosition(mBall.GetCurrentPosition() - mPaddle.GetCurrentPosition()); ballRelativePosition.Normalize(); @@ -779,7 +777,7 @@ private: void OnHitBrick(PropertyNotification& source) { Actor brick = Actor::DownCast(source.GetTarget()); - Vector3 collisionVector = DevelHandle::GetCurrentProperty< Vector3 >( brick, source.GetTargetProperty() ); + Vector3 collisionVector = brick.GetCurrentProperty< Vector3 >( source.GetTargetProperty() ); const float normalVelocity = fabsf(mBallVelocity.Dot(collisionVector)); mBallVelocity += collisionVector * normalVelocity * 2.0f; -- 2.7.4