X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscene3d-view%2Fgltf-loader.cpp;h=35bdd42708d7504f854949d5048646378f1114d0;hp=693944f9ca4dd46e32f0b9a6962a552eb83d7572;hb=ad110f27c01af7e617df158891eef5cf60bf22e6;hpb=54bdcbd00f206dba5af21fd603bed6469caede43 diff --git a/dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp b/dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp index 693944f..35bdd42 100644 --- a/dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp +++ b/dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp @@ -1583,12 +1583,12 @@ Actor Loader::AddNode( Scene3dView& scene3dView, uint32_t index ) anchorPoint = meshInfo.pivot; actor.SetProperty( Actor::Property::ANCHOR_POINT, anchorPoint ); - actor.SetSize( Vector3( meshInfo.size.x, meshInfo.size.y, meshInfo.size.z ) ); + actor.SetProperty( Actor::Property::SIZE, Vector3( meshInfo.size.x, meshInfo.size.y, meshInfo.size.z ) ); actor.AddRenderer( renderer ); - actor.SetScale( scale ); + actor.SetProperty( Actor::Property::SCALE, scale ); actor.RotateBy( orientation ); - actor.SetPosition( translation ); + actor.SetProperty( Actor::Property::POSITION, translation ); shader.RegisterProperty( "uLightType", ( scene3dView.GetLightType() & ~Toolkit::Scene3dView::LightType::IMAGE_BASED_LIGHT ) ); shader.RegisterProperty( "uLightVector", scene3dView.GetLightVector() ); @@ -1649,9 +1649,9 @@ Actor Loader::AddNode( Scene3dView& scene3dView, uint32_t index ) else { actor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); - actor.SetPosition( translation ); + actor.SetProperty( Actor::Property::POSITION, translation ); actor.RotateBy( orientation ); - actor.SetSize( actorSize ); + actor.SetProperty( Actor::Property::SIZE, actorSize ); } tempNode = node->GetChild( "camera" );