From f2ff26bf393cf47888f071138e23069c34e9cfea Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Tue, 7 Feb 2023 22:47:10 +0900 Subject: [PATCH] [NUI.Scene3D] Do not dispose camera internally SceneView's camera is not an instance object anymore. It can be holded by app side. So, if we dispose it inside of CameraTransition Function, It become sudden dead. Actually, Dali side camera object still alive, but the NUI.Camera handle is dereferenced. So, If app try to access that camera, crash occured. Signed-off-by: Eunki, Hong --- src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs b/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs index f84af37..e3aa23a 100755 --- a/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs +++ b/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs @@ -395,8 +395,6 @@ namespace Tizen.NUI.Scene3D SelectCamera(index); Camera destination = GetSelectedCamera(); CameraTransition(source, destination, durationMilliSeconds, alphaFunction); - source.Dispose(); - destination.Dispose(); } /// @@ -422,8 +420,6 @@ namespace Tizen.NUI.Scene3D SelectCamera(name); Camera destination = GetSelectedCamera(); CameraTransition(source, destination, durationMilliSeconds, alphaFunction); - source.Dispose(); - destination.Dispose(); } /// -- 2.7.4