Inspector: fix clean mode
Even if duplicate actions are removed, the delay should remain the same between two actions, no matter how many actions have been removed between.
This commit is contained in:
parent
da73209747
commit
82cfa8378a
|
@ -1373,9 +1373,13 @@ main(int argc, char *argv[])
|
|||
Eina_List *itr, *itr2;
|
||||
EINA_LIST_FOREACH_SAFE(unit->actions, itr, itr2, act)
|
||||
{
|
||||
if (_is_hook_duplicate(act, eina_list_data_get(eina_list_prev(itr))))
|
||||
Exactness_Action *prev_act = eina_list_data_get(eina_list_prev(itr));
|
||||
if (_is_hook_duplicate(act, prev_act))
|
||||
{
|
||||
prev_act->delay_ms += act->delay_ms;
|
||||
unit->actions = eina_list_remove_list(unit->actions, itr);
|
||||
}
|
||||
}
|
||||
EINA_LIST_REVERSE_FOREACH_SAFE(unit->actions, itr, itr2, act)
|
||||
{
|
||||
if (act->type == EXACTNESS_ACTION_TAKE_SHOT) break;
|
||||
|
|
Loading…
Reference in New Issue