[Bf-blender-cvs] [cdb772490ae] blender2.8: Fix object restrict selection toggle in outliner not working

Dalai Felinto noreply at git.blender.org
Tue Sep 25 13:27:44 CEST 2018


Commit: cdb772490aebc58df0cc180bdc48671bf8c5c8dd
Author: Dalai Felinto
Date:   Mon Sep 24 11:53:25 2018 +0000
Branches: blender2.8
https://developer.blender.org/rBcdb772490aebc58df0cc180bdc48671bf8c5c8dd

Fix object restrict selection toggle in outliner not working

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

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 bc8c914de94..2e99cdf5ea0 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2548,7 +2548,7 @@ static void rna_def_object(BlenderRNA *brna)
 	RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
 	RNA_def_property_ui_text(prop, "Disable Select", "Disable object selection in the viewport");
 	RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, 1);
-	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
+	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
 
 	prop = RNA_def_property(srna, "hide_render", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_RENDER);



More information about the Bf-blender-cvs mailing list