Showing the changes to interface/src/raypick/PickScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -373,7 +373,8 @@ std::shared_ptr<TransformNode> PickScriptingInterface::createTransformNode(const · 372 unmodified lines | ||
| 373 | 373 | if (propMap["parentJointIndex"].isValid()) { |
| 374 | 374 | parentJointIndex = propMap["parentJointIndex"].toInt(); |
| 375 | 375 | } |
| 376 | − if (success && !nestablePointer.expired()) { | |
| 376 | + auto sharedNestablePointer = nestablePointer.lock(); | |
| 377 | + if (success && sharedNestablePointer) { | |
| 377 | 378 | return std::make_shared<NestableTransformNode>(nestablePointer, parentJointIndex); |
| 378 | 379 | } |
| 379 | 380 | } |