[Bf-blender-cvs] [b20160a0ba6] greasepencil-object: Tag gpd light update on mode change
Falk David
noreply at git.blender.org
Mon Feb 7 18:35:14 CET 2022
Commit: b20160a0ba67399d5fa9ea7a3f90a596c4b00f2f
Author: Falk David
Date: Thu Feb 3 16:17:36 2022 +0100
Branches: greasepencil-object
https://developer.blender.org/rBb20160a0ba67399d5fa9ea7a3f90a596c4b00f2f
Tag gpd light update on mode change
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 81a844cf6e1..4f3de5aba25 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -59,6 +59,7 @@
#include "BKE_gpencil.h"
#include "BKE_gpencil_curve.h"
#include "BKE_gpencil_geom.h"
+#include "BKE_gpencil_update_cache.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_object.h"
@@ -2010,6 +2011,9 @@ void ED_gpencil_setup_modes(bContext *C, bGPdata *gpd, int newmode)
ED_gpencil_toggle_brush_cursor(C, false, NULL);
break;
}
+
+ /* Flag on the gpd changed, so tag using light update. */
+ BKE_gpencil_tag_light_update(gpd, NULL, NULL, NULL);
}
/**
More information about the Bf-blender-cvs
mailing list