[Bf-blender-cvs] [93bb56b] soc-2013-paint: Make sure mesh is updated when we change the stencil layer. Takes care of updating the stencil preview.
Antony Riakiotakis
noreply at git.blender.org
Sat May 10 12:35:11 CEST 2014
Commit: 93bb56b468d16ce86c5e9f050911ef568d98da7a
Author: Antony Riakiotakis
Date: Sat May 10 13:34:50 2014 +0300
https://developer.blender.org/rB93bb56b468d16ce86c5e9f050911ef568d98da7a
Make sure mesh is updated when we change the stencil layer. Takes care
of updating the stencil preview.
===================================================================
M source/blender/makesrna/intern/rna_mesh.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index 8c0f998..b0b99dc 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -3121,11 +3121,13 @@ static void rna_def_mesh(BlenderRNA *brna)
"rna_Mesh_uv_texture_stencil_set", NULL, NULL);
RNA_def_property_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Mask UV Map", "UV map to mask the painted area");
+ RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
prop = RNA_def_property(srna, "uv_texture_stencil_index", PROP_INT, PROP_UNSIGNED);
RNA_def_property_int_funcs(prop, "rna_Mesh_uv_texture_stencil_index_get",
"rna_Mesh_uv_texture_stencil_index_set", "rna_Mesh_uv_texture_index_range");
RNA_def_property_ui_text(prop, "Mask UV Map Index", "Mask UV map index");
+ RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
/* Tessellated face colors - used by renderers */
More information about the Bf-blender-cvs
mailing list