[Bf-blender-cvs] [89f9f9b4f52] temp-lineart-contained: Trigger baking progress bar refresh

Sebastian Parborg noreply at git.blender.org
Fri Mar 12 17:02:19 CET 2021


Commit: 89f9f9b4f524365d3ed087cc445bcdbc4abb8a1d
Author: Sebastian Parborg
Date:   Fri Mar 12 17:01:23 2021 +0100
Branches: temp-lineart-contained
https://developer.blender.org/rB89f9f9b4f524365d3ed087cc445bcdbc4abb8a1d

Trigger baking progress bar refresh

===================================================================

M	source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c

===================================================================

diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
index 3cbced4bbfe..bc49bddd26d 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
@@ -204,7 +204,9 @@ static void lineart_gpencil_bake_startjob(void *customdata,
       }
     }
 
+    /* Update and refresh the progress bar. */
     *bj->progress = (float)(frame - bj->frame_begin) / (bj->frame_end - bj->frame_begin);
+    *bj->do_update = true;
   }
 
   /* This need to be reset manually. */



More information about the Bf-blender-cvs mailing list