mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 01:46:18 +02:00
Only create a NestableTransformNode if the spatially nestable exists
This commit is contained in:
parent
f71fc83309
commit
2e290ea798
1 changed files with 2 additions and 1 deletions
|
@ -373,7 +373,8 @@ std::shared_ptr<TransformNode> PickScriptingInterface::createTransformNode(const
|
|||
if (propMap["parentJointIndex"].isValid()) {
|
||||
parentJointIndex = propMap["parentJointIndex"].toInt();
|
||||
}
|
||||
if (success && !nestablePointer.expired()) {
|
||||
auto sharedNestablePointer = nestablePointer.lock();
|
||||
if (success && sharedNestablePointer) {
|
||||
return std::make_shared<NestableTransformNode>(nestablePointer, parentJointIndex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue