[NUI] Switch camera includes current camera's Unparent()
authorjmm <j0064423.lee@samsung.com>
Wed, 12 Jul 2023 09:26:51 +0000 (18:26 +0900)
committerbshsqa <32317749+bshsqa@users.noreply.github.com>
Tue, 18 Jul 2023 09:41:32 +0000 (18:41 +0900)
src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs

index 10eada0..c0db71a 100755 (executable)
@@ -354,6 +354,7 @@ namespace Tizen.NUI.Scene3D
             {
                 return;
             }
+            this.GetSelectedCamera()?.Unparent();
             Interop.SceneView.SelectCamera(SwigCPtr, index);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -369,6 +370,7 @@ namespace Tizen.NUI.Scene3D
             {
                 return;
             }
+            this.GetSelectedCamera()?.Unparent();
             Interop.SceneView.SelectCamera(SwigCPtr, name);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }