[NUI.Scene3D] Fix exception when ModelNode don't have ModelNode as child
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 14 Nov 2023 08:17:11 +0000 (17:17 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 15 Nov 2023 08:56:46 +0000 (17:56 +0900)
commit44615e6fea41ce7feee77c500bfd852a81398b99
treeb98a23a01689f26a870818cc22622b736554013e
parenta3d97cb44c4a465b847832bf82ba4a05dedd9b7f
[NUI.Scene3D] Fix exception when ModelNode don't have ModelNode as child

If ModelNode don't have ModelNod as child, it might have
some null handle exception when we DownCast to ModelNode.
(For example, user try to get child ModelNode, but failed.)

Currently, a lots of app don't consider ModelNode now. But in future
we might need to add something under each ModelNode.

To make Scene3D more safety, let we check null or invalidate,
and then get/set the value internally.

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