[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)
committerhuiyu <35286162+huiyueun@users.noreply.github.com>
Wed, 17 Jan 2024 09:35:29 +0000 (18:35 +0900)
commit9b9e396a755b190fa38b20d96a79a15e19abb485
treeeea9b90df87560a5f338fb2ebc82d79d82dd2301
parente119eb8219c9a6079e01059ac0c8861b6799a8f1
[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