History

Only create a NestableTransformNode if the spatially nestable exists

sabrina-shanman committed 8 years ago

Commit 2e290ea1 parent f71fc831 file · +2 −1Browse files

Showing the changes to interface/src/raypick/PickScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/raypick/PickScriptingInterface.cpp+2−1
@@ -373,7 +373,8 @@ std::shared_ptr<TransformNode> PickScriptingInterface::createTransformNode(const · 372 unmodified lines
373373 if (propMap["parentJointIndex"].isValid()) {
374374 parentJointIndex = propMap["parentJointIndex"].toInt();
375375 }
376− if (success && !nestablePointer.expired()) {
376+ auto sharedNestablePointer = nestablePointer.lock();
377+ if (success && sharedNestablePointer) {
377378 return std::make_shared<NestableTransformNode>(nestablePointer, parentJointIndex);
378379 }
379380 }