Commit: ae6862447283604133ef3fb36e05c0f836584dba
Author: Yann Lanthony
Date:   Tue Feb 1 15:45:09 2022 +0100
Branches: greasepencil-object
https://developer.blender.org/rBae6862447283604133ef3fb36e05c0f836584dba

GPencil: improve comment in paint code

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

M       source/blender/editors/gpencil/gpencil_paint.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c 
b/source/blender/editors/gpencil/gpencil_paint.c
index 0942e0134ea..082deab823b 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2110,7 +2110,8 @@ static void gpencil_session_cleanup(tGPsdata *p)
   gpd->runtime.sbuffer_used = 0;
   gpd->runtime.sbuffer_size = 0;
   gpd->runtime.sbuffer_sflag = 0;
-  /* TODO: This fixes an issue where visual glitches can occur. */
+  /* This update is required for update-on-write because the sbuffer data is 
not longer overwritten
+   * by a copy-on-write. */
   ED_gpencil_sbuffer_update_eval(gpd, p->ob_eval);
   p->inittime = 0.0;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to