[Bf-blender-cvs] [98008908864] greasepencil-refactor: GPencil. Tag datablock when In Front property is changed

Antonio Vazquez noreply at git.blender.org
Tue Jan 21 18:06:35 CET 2020


Commit: 9800890886447adfeb5d754aeb7ceac9763ff286
Author: Antonio Vazquez
Date:   Tue Jan 21 18:05:22 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB9800890886447adfeb5d754aeb7ceac9763ff286

GPencil. Tag datablock when In Front property is changed

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

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

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

diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 1895807977f..d8af50b3c02 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -3081,7 +3081,7 @@ static void rna_def_object(BlenderRNA *brna)
   prop = RNA_def_property(srna, "show_in_front", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "dtx", OB_DRAWXRAY);
   RNA_def_property_ui_text(prop, "In Front", "Make the object draw in front of others");
-  RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
+  RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_GPencil_update");
 
   /* pose */
   prop = RNA_def_property(srna, "pose_library", PROP_POINTER, PROP_NONE);



More information about the Bf-blender-cvs mailing list