Fix usage of validation
parent
4fb5cf4ba6
commit
02b0c89fa4
|
@ -908,7 +908,7 @@ Ref<Node> FindSkeletonRootJoint(Ref<Skin> &skinRef) {
|
||||||
do {
|
do {
|
||||||
startNodeRef = parentNodeRef;
|
startNodeRef = parentNodeRef;
|
||||||
parentNodeRef = startNodeRef->parent;
|
parentNodeRef = startNodeRef->parent;
|
||||||
} while (nullptr != parentNodeRef && !parentNodeRef->jointName.empty());
|
} while (parentNodeRef && !parentNodeRef->jointName.empty());
|
||||||
|
|
||||||
return parentNodeRef;
|
return parentNodeRef;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue