summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-02-19 13:43:22 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-02-19 13:43:22 +0800
commita787e43b1393942cf457a9176c9570612edc8f6b (patch)
tree78959e445028aad975ec754930e5faba01dec90f
parentc944c9e572e616c2f0eba1e392fd17ca030625ec (diff)
Fix crash when importing DAE model
-rw-r--r--editor/import/editor_import_collada.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/editor_import_collada.cpp b/editor/import/editor_import_collada.cpp
index c1ae5be0bb..3b5a82b2c3 100644
--- a/editor/import/editor_import_collada.cpp
+++ b/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;