Skip to content

Commit

Permalink
Merge pull request #1596 from Autodesk/tremblp/MAYA-112601/fix_usd_sc…
Browse files Browse the repository at this point in the history
…ene_item_creation

Fix crash on scene item creation.
  • Loading branch information
Krystian Ligenza authored Jul 28, 2021
2 parents 912abd2 + 2cf2d56 commit bec89ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mayaUsd/ufe/UsdTransform3dHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ Ufe::Transform3d::Ptr UsdTransform3dHandler::transform3d(const Ufe::SceneItem::P
assert(usdItem);
#endif

if (!usdItem) {
return nullptr;
}

if (usdItem->isPointInstance()) {
// Point instance manipulation using this handler is only supported
// with UFE v2. Otherwise, we disallow any manipulation for point
Expand Down

0 comments on commit bec89ae

Please sign in to comment.