diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp index e14398f0d..1a8f93a9c 100644 --- a/plugins/workflow.cpp +++ b/plugins/workflow.cpp @@ -406,6 +406,7 @@ static void start_protect(color_ostream &out) out.print("Protecting %d jobs.\n", known_jobs.size()); } +static bool first_update_done = false; static void init_state(color_ostream &out) { auto pworld = Core::getInstance().getWorld(); @@ -430,6 +431,7 @@ static void init_state(color_ostream &out) last_tick_frame_count = world->frame_counter; last_frame_count = world->frame_counter; + first_update_done = false; if (!enabled) return; @@ -437,7 +439,6 @@ static void init_state(color_ostream &out) start_protect(out); } -static bool first_update_done = false; static void enable_plugin(color_ostream &out) { auto pworld = Core::getInstance().getWorld();