Move scenario cleaning from player to inspector
This commit is contained in:
parent
89a207bd34
commit
b2cf106517
|
@ -1356,6 +1356,11 @@ main(int argc, char *argv[])
|
||||||
if (_is_hook_duplicate(act, eina_list_data_get(eina_list_prev(itr))))
|
if (_is_hook_duplicate(act, eina_list_data_get(eina_list_prev(itr))))
|
||||||
unit->actions = eina_list_remove_list(unit->actions, itr);
|
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;
|
||||||
|
unit->actions = eina_list_remove(unit->actions, act);
|
||||||
|
}
|
||||||
write_file = EINA_TRUE;
|
write_file = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -810,11 +810,6 @@ _src_open()
|
||||||
_src_unit = legacy_rec_file_read(_src_filename);
|
_src_unit = legacy_rec_file_read(_src_filename);
|
||||||
}
|
}
|
||||||
if (!_src_unit) return EINA_FALSE;
|
if (!_src_unit) return EINA_FALSE;
|
||||||
EINA_LIST_REVERSE_FOREACH_SAFE(_src_unit->actions, itr, itr2, act)
|
|
||||||
{
|
|
||||||
if (act->type == EXACTNESS_ACTION_TAKE_SHOT) break;
|
|
||||||
_src_unit->actions = eina_list_remove(_src_unit->actions, act);
|
|
||||||
}
|
|
||||||
if (_stabilize_shots)
|
if (_stabilize_shots)
|
||||||
{
|
{
|
||||||
Exactness_Action_Type last_action_type = EXACTNESS_ACTION_UNKNOWN;
|
Exactness_Action_Type last_action_type = EXACTNESS_ACTION_UNKNOWN;
|
||||||
|
|
Loading…
Reference in New Issue