Browse Source

fix to collada import crash

Juan Linietsky 10 years ago
parent
commit
b09a8bd32f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tools/editor/io_plugins/editor_import_collada.cpp

+ 1 - 0
tools/editor/io_plugins/editor_import_collada.cpp

@@ -1616,6 +1616,7 @@ Error ColladaImport::_create_resources(Collada::Node *p_node) {
 
 					if (collada.state.morph_controller_data_map.has(meshid)) {
 						//it's a morph!!
+						morph = &collada.state.morph_controller_data_map[meshid];
 						ngsource=meshid;
 						meshid=morph->mesh;
 					} else {