Merge pull request #38165 from YeldhamDev/multitrack_time_fix

Fix crash when changing time value of multiple animation keys at once via inspector
This commit is contained in:
Rémi Verschelde 2020-04-25 00:02:29 +02:00 committed by GitHub
commit 10e5427cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -754,14 +754,17 @@ public:
for (Map<int, List<float>>::Element *E = key_ofs_map.front(); E; E = E->next()) {
int key = 0;
for (List<float>::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;