[Bf-blender-cvs] [ae686244728] greasepencil-object: GPencil: improve comment in paint code

Yann Lanthony noreply at git.blender.org
Mon Feb 7 18:35:11 CET 2022


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;
 }



More information about the Bf-blender-cvs mailing list