Ignore optionals when finding task step (#3836)

This fixes optional elements from being required to unlock the next step
when using the step system.
This commit is contained in:
hg authored and GitHub committed 2024-01-05 17:05:56 -05:00
1 parent 1e8889a9fc
commit 076aab50e8
2 files changed
+15 -9

No files matched your search

+3 -1
View File
@@ -359,9 +359,11 @@ namespace Tasks {
if (activity_states[i].activity_state != ActivityCompleted)
{
completed_ids[i] = false;
current_step = std::min(current_step, el.step);
// step system advances to next step if only optionals active
if (!el.optional)
{
current_step = std::min(current_step, el.step);
result.is_task_complete = false;
}
}