[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54189] trunk/blender/source/blender/ makesrna/intern/rna_space.c: Fix #34003: hide confusing unlink button for pinned datablock in properties editor.

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Jan 29 18:15:51 CET 2013


Revision: 54189
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54189
Author:   blendix
Date:     2013-01-29 17:15:51 +0000 (Tue, 29 Jan 2013)
Log Message:
-----------
Fix #34003: hide confusing unlink button for pinned datablock in properties editor.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_space.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c	2013-01-29 15:05:23 UTC (rev 54188)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c	2013-01-29 17:15:51 UTC (rev 54189)
@@ -2045,7 +2045,7 @@
 	/* note: custom set function is ONLY to avoid rna setting a user for this. */
 	RNA_def_property_pointer_funcs(prop, NULL, "rna_SpaceProperties_pin_id_set",
 	                               "rna_SpaceProperties_pin_id_typef", NULL);
-	RNA_def_property_flag(prop, PROP_EDITABLE);
+	RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_UNLINK);
 	RNA_def_property_update(prop, NC_SPACE | ND_SPACE_PROPERTIES, "rna_SpaceProperties_pin_id_update");
 
 	prop = RNA_def_property(srna, "use_pin_id", PROP_BOOLEAN, PROP_NONE);




More information about the Bf-blender-cvs mailing list