[API10][NUI.Scene3D] Remove useless default property setter on Model (#4743)
authorEunki Hong <h.pichulia@gmail.com>
Fri, 11 Nov 2022 06:15:30 +0000 (15:15 +0900)
committerGitHub <noreply@github.com>
Fri, 11 Nov 2022 06:15:30 +0000 (15:15 +0900)
This PR don't make FocusableChildren as false in default.
Now we can add focusable children under the Model as default.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs

index 1dc06c2..2ff3a0b 100755 (executable)
@@ -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;
         }
 
         /// <summary>
@@ -124,31 +121,6 @@ namespace Tizen.NUI.Scene3D
         }
 
         /// <summary>
-        /// 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.
-        /// </summary>
-        /// <remarks>
-        /// 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.
-        /// </remarks>
-        private bool ChildrenSensitive
-        {
-            set
-            {
-                SetChildrenSensitive(value);
-            }
-            get
-            {
-                return GetChildrenSensitive();
-            }
-        }
-
-        /// <summary>
         /// Set/Get the ImageBasedLight ScaleFactor.
         /// Scale factor controls light source intensity in [0.0f, 1.0f]
         /// </summary>
@@ -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;
-        }
-
         /// <summary>
         /// Set the ImageBasedLight ScaleFactor.
         /// </summary>