Root nullptr check when destroying rig tree

This commit is contained in:
Xiao Qi 2023-01-07 22:04:11 +08:00
parent 1a2a514f98
commit 1eab15d129
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@ namespace SHADE
{
SHRigAsset::~SHRigAsset()
{
if (root == nullptr)
{
return;
}
std::queue<SHRigNode*> nodeQueue;
nodeQueue.push(root);