浏览代码

fix collada crash on invalid (blender internal expored...) file, fixes #6222

Juan Linietsky 8 年之前
父节点
当前提交
de219e5cbe
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/collada/collada.cpp

+ 1 - 0
editor/collada/collada.cpp

@@ -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));
 				}