[NUI.Scene3D] Do not dispose camera internally
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Feb 2023 13:47:10 +0000 (22:47 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 13 Feb 2023 09:16:02 +0000 (18:16 +0900)
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 <eunkiki.hong@samsung.com>
src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs

index f84af37..e3aa23a 100755 (executable)
@@ -395,8 +395,6 @@ namespace Tizen.NUI.Scene3D
             SelectCamera(index);
             Camera destination = GetSelectedCamera();
             CameraTransition(source, destination, durationMilliSeconds, alphaFunction);
-            source.Dispose();
-            destination.Dispose();
         }
 
         /// <summary>
@@ -422,8 +420,6 @@ namespace Tizen.NUI.Scene3D
             SelectCamera(name);
             Camera destination = GetSelectedCamera();
             CameraTransition(source, destination, durationMilliSeconds, alphaFunction);
-            source.Dispose();
-            destination.Dispose();
         }
 
         /// <summary>