Skip to content

Commit

Permalink
[NUI.Scene3D] Fix miss used method in SceneView
Browse files Browse the repository at this point in the history
 - DeleteCameraProperty has been used for the case that should use DeleteCamera.

Signed-off-by: Seungho Baek <[email protected]>
  • Loading branch information
bshsqa committed Sep 25, 2024
1 parent 29b2c1b commit c3d5df3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public Camera GetCamera(uint index)
{
// We found matched NUI camera. Reduce cPtr reference count.
HandleRef handle = new HandleRef(this, cPtr);
Interop.Camera.DeleteCameraProperty(handle);
Interop.Camera.DeleteCamera(handle);
handle = new HandleRef(null, IntPtr.Zero);
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Expand All @@ -472,7 +472,7 @@ public Camera GetCamera(string name)
{
// We found matched NUI camera. Reduce cPtr reference count.
HandleRef handle = new HandleRef(this, cPtr);
Interop.Camera.DeleteCameraProperty(handle);
Interop.Camera.DeleteCamera(handle);
handle = new HandleRef(null, IntPtr.Zero);
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Expand Down Expand Up @@ -569,7 +569,7 @@ public Camera GetSelectedCamera()
{
// We found matched NUI camera. Reduce cPtr reference count.
HandleRef handle = new HandleRef(this, cPtr);
Interop.Camera.DeleteCameraProperty(handle);
Interop.Camera.DeleteCamera(handle);
handle = new HandleRef(null, IntPtr.Zero);
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Expand Down

0 comments on commit c3d5df3

Please sign in to comment.