Browse Source

Merge pull request #58308 from timothyqiu/dae-for

Fix crash when importing DAE model
Rémi Verschelde 3 years ago
parent
commit
8aed7c1c09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/import/editor_import_collada.cpp

+ 1 - 1
editor/import/editor_import_collada.cpp

@@ -1535,7 +1535,7 @@ void ColladaImport::create_animation(int p_clip, bool p_import_value_tracks) {
 		bool has_rotation = false;
 		bool has_scale = false;
 
-		for (int i = 0; cn->xform_list.size(); i++) {
+		for (int i = 0; i < cn->xform_list.size(); i++) {
 			switch (cn->xform_list[i].op) {
 				case Collada::Node::XForm::OP_ROTATE: {
 					has_rotation = true;