Root nullptr check when destroying rig tree
This commit is contained in:
parent
1a2a514f98
commit
1eab15d129
|
@ -7,6 +7,11 @@ namespace SHADE
|
||||||
{
|
{
|
||||||
SHRigAsset::~SHRigAsset()
|
SHRigAsset::~SHRigAsset()
|
||||||
{
|
{
|
||||||
|
if (root == nullptr)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::queue<SHRigNode*> nodeQueue;
|
std::queue<SHRigNode*> nodeQueue;
|
||||||
nodeQueue.push(root);
|
nodeQueue.push(root);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue