Bugfix for infinite loop in Sample Keys function in the action editor,

with two keyframes on the same location.
This commit is contained in:
Brecht Van Lommel
2008-02-05 22:46:26 +00:00
parent 33f3f85235
commit 53d8645837

View File

@@ -1634,12 +1634,12 @@ void sample_action_keys (void)
/* free temp cache */
MEM_freeN(value_cache);
/* as we added keyframes, we need to compensate so that bezt is at the right place */
bezt = icu->bezt + i + range - 1;
i += (range - 1);
}
/* as we added keyframes, we need to compensate so that bezt is at the right place */
bezt = icu->bezt + i + range - 1;
i += (range - 1);
/* bezt was selected, so it now marks the start of a whole new chain to search */
start= bezt;
end= NULL;