fix collada crash on invalid (blender internal expored...) file, fixes #6222
This commit is contained in:
parent
5e1116da4c
commit
de219e5cbe
1 changed files with 1 additions and 0 deletions
|
@ -2220,6 +2220,7 @@ void Collada::_merge_skeletons(VisualScene *p_vscene, Node *p_node) {
|
|||
ERR_CONTINUE(!state.scene_map.has(nodeid)); //weird, it should have it...
|
||||
|
||||
NodeJoint *nj = SAFE_CAST<NodeJoint *>(state.scene_map[nodeid]);
|
||||
ERR_CONTINUE(!nj); //broken collada
|
||||
if (!nj->owner) {
|
||||
print_line("no owner for: " + String(nodeid));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue