From 9be0d51bf3ff45d0659d173682796edccf301409 Mon Sep 17 00:00:00 2001 From: Eunki Hong Date: Fri, 11 Nov 2022 17:12:45 +0900 Subject: [PATCH 1/1] [NUI.Scene3D] Remove useless default property setter on Model (#4742) Signed-off-by: Eunki, Hong Signed-off-by: Eunki, Hong Co-authored-by: Eunki, Hong --- src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs | 41 ---------------------- 1 file changed, 41 deletions(-) diff --git a/src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs b/src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs index 1dc06c2..2ff3a0b 100755 --- a/src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs +++ b/src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs @@ -78,9 +78,6 @@ namespace Tizen.NUI.Scene3D { internal Model(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) { - // Currenly, Model don't have API to access it's child. So, we make it false. - this.ChildrenSensitive = false; - this.FocusableChildren = false; } /// @@ -124,31 +121,6 @@ namespace Tizen.NUI.Scene3D } /// - /// Set/Get whether allow this model's children allow to use touch events. - /// This property doesn't change Model itself's Sensitive info. - /// If this property is true, event can traversal this models children. - /// If this property is false, event traversal blocked. - /// Default is false. - /// - /// - /// If ChildrenSensitive is true, it could decrease performance but we can connect events into it's children. - /// If ChildrenSensitive is false, the performance becomes better but we cannot connect events into it's children. - /// - /// Currenly, Model don't have API to access it's child. So, we make it as private. - /// - private bool ChildrenSensitive - { - set - { - SetChildrenSensitive(value); - } - get - { - return GetChildrenSensitive(); - } - } - - /// /// Set/Get the ImageBasedLight ScaleFactor. /// Scale factor controls light source intensity in [0.0f, 1.0f] /// @@ -241,19 +213,6 @@ namespace Tizen.NUI.Scene3D return ret; } - internal void SetChildrenSensitive(bool enable) - { - Interop.Model.SetChildrenSensitive(SwigCPtr, enable); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal bool GetChildrenSensitive() - { - bool result = Interop.Model.GetChildrenSensitive(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return result; - } - /// /// Set the ImageBasedLight ScaleFactor. /// -- 2.7.4