diff options
Diffstat (limited to 'editor/import/collada.cpp')
-rw-r--r-- | editor/import/collada.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/collada.cpp b/editor/import/collada.cpp index a499fc4feb..d27b0aea40 100644 --- a/editor/import/collada.cpp +++ b/editor/import/collada.cpp @@ -2196,7 +2196,7 @@ bool Collada::_move_geometry_to_skeletons(VisualScene *p_vscene, Node *p_node, L ERR_FAIL_COND_V(!state.scene_map.has(nodeid), false); //weird, it should have it... NodeJoint *nj = dynamic_cast<NodeJoint *>(state.scene_map[nodeid]); - ERR_FAIL_COND_V(!nj, false); + ERR_FAIL_NULL_V(nj, false); ERR_FAIL_COND_V(!nj->owner, false); //weird, node should have a skeleton owner NodeSkeleton *sk = nj->owner; |