[Bf-blender-cvs] [8df4d2de025] greasepencil-object: Add notifier flag to update viewport
Antonio Vazquez
noreply at git.blender.org
Fri Apr 27 10:27:58 CEST 2018
Commit: 8df4d2de02568344fffca72ef3161711519cd47d
Author: Antonio Vazquez
Date: Fri Apr 27 10:27:50 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8df4d2de02568344fffca72ef3161711519cd47d
Add notifier flag to update viewport
Whitout this flag, the viewport is not updated when change something in the material.
===================================================================
M source/blender/makesrna/intern/rna_material.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 3b8c2246040..6ae7675f31b 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -93,7 +93,7 @@ static void rna_Material_update(Main *UNUSED(bmain), Scene *UNUSED(scene), Point
Material *ma = ptr->id.data;
DEG_id_tag_update(&ma->id, 0);
- WM_main_add_notifier(NC_MATERIAL | ND_SHADING | NC_GPENCIL, ma);
+ WM_main_add_notifier(NC_MATERIAL | ND_SHADING | NC_GPENCIL | ND_DATA, ma);
}
static void rna_Material_update_previews(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
More information about the Bf-blender-cvs
mailing list