[Bf-blender-cvs] [1730ef75274] greasepencil-object: Fix simplify bug due cache corruption

Antonio Vazquez noreply at git.blender.org
Thu Mar 15 13:07:11 CET 2018


Commit: 1730ef7527485cda4f681c75ccba13dc87c59a5f
Author: Antonio Vazquez
Date:   Thu Mar 15 13:07:04 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB1730ef7527485cda4f681c75ccba13dc87c59a5f

Fix simplify bug due cache corruption

When enable/disable simplify options, the cache must be set as dirty.

Now, the update is done using depsgraph.

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

M	source/blender/makesrna/intern/rna_scene.c

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

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 6b2c264a64e..140f81ff9fd 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -492,7 +492,7 @@ static const EnumPropertyItem rna_enum_gpencil_interpolation_mode_items[] = {
 /* Grease Pencil update cache */
 static void rna_GPencil_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
 {
-	BKE_gpencil_batch_cache_alldirty_main(bmain);
+	DEG_id_type_tag(bmain, ID_GD);
 	WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL);
 }



More information about the Bf-blender-cvs mailing list