Fixed bug when SceneGraph is destroyed
This commit is contained in:
parent
45d526c0e0
commit
0e518c52a9
|
@ -312,6 +312,11 @@ namespace SHADE
|
|||
if (parentNode == nullptr)
|
||||
{
|
||||
SHLOG_WARNING("Removing Entity {}'s parent", entityID)
|
||||
|
||||
if (parent)
|
||||
parent->RemoveChild(this);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle self assignment
|
||||
|
|
Loading…
Reference in New Issue