Fix crash when changing time value of multiple animation keys at once via inspector
(cherry picked from commit b081e954cc
)
This commit is contained in:
parent
8cdcb410e0
commit
de4c75af10
|
@ -754,14 +754,17 @@ public:
|
||||||
|
|
||||||
for (Map<int, List<float> >::Element *E = key_ofs_map.front(); E; E = E->next()) {
|
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()) {
|
for (List<float>::Element *F = E->value().front(); F; F = F->next()) {
|
||||||
|
|
||||||
float key_ofs = F->get();
|
float key_ofs = F->get();
|
||||||
if (from != key_ofs)
|
if (from != key_ofs) {
|
||||||
|
key++;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int track = E->key();
|
int track = E->key();
|
||||||
key_ofs_map[track][key_ofs] = to;
|
key_ofs_map[track][key] = to;
|
||||||
|
|
||||||
if (setting)
|
if (setting)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue