From: Eunki, Hong Date: Tue, 4 Oct 2022 11:06:21 +0000 (+0900) Subject: [NUI] Fix Rotation Property set/get usage X-Git-Tag: accepted/tizen/unified/20231205.024657~673 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=857a05d8ff1c7ab9653e5d4ff9ce1846db2e4b99;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix Rotation Property set/get usage Rotation don't use Vector3. It use Quaternion internally. Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs index 5eb029c..2611584 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs @@ -1349,22 +1349,14 @@ namespace Tizen.NUI.BaseComponents var view = (View)bindable; if (newValue != null) { -#if NUI_PROPERTY_CHANGE_1 - Interop.Actor.InternalSetPropertyVector3(view.SwigCPtr, View.Property.ORIENTATION, ((Rotation)newValue).SwigCPtr); -#else Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue)); -#endif } }), defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => { var view = (View)bindable; Rotation temp = new Rotation(); -#if NUI_PROPERTY_CHANGE_1 - Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.ORIENTATION, temp.SwigCPtr); -#else Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION).Get(temp); -#endif return temp; }));