diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 5b3553d65e3..10abde7a905 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -754,14 +754,17 @@ public: for (Map >::Element *E = key_ofs_map.front(); E; E = E->next()) { + int key = 0; for (List::Element *F = E->value().front(); F; F = F->next()) { float key_ofs = F->get(); - if (from != key_ofs) + if (from != key_ofs) { + key++; continue; + } int track = E->key(); - key_ofs_map[track][key_ofs] = to; + key_ofs_map[track][key] = to; if (setting) return;