[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27069] trunk/blender/source/blender/ editors/interface/interface_templates.c: Fix for #21209, Delete X for particle settings does nothing.
Elia Sarti
vekoon at gmail.com
Sun Feb 21 23:55:35 CET 2010
Revision: 27069
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27069
Author: vekoon
Date: 2010-02-21 23:55:35 +0100 (Sun, 21 Feb 2010)
Log Message:
-----------
Fix for #21209, Delete X for particle settings does nothing.
Disable ID default unlink button if the RNA property is set to never be null, as the unlink default action simply sets pointers to null
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface_templates.c
Modified: trunk/blender/source/blender/editors/interface/interface_templates.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_templates.c 2010-02-21 22:29:40 UTC (rev 27068)
+++ trunk/blender/source/blender/editors/interface/interface_templates.c 2010-02-21 22:55:35 UTC (rev 27069)
@@ -449,6 +449,9 @@
else {
but= uiDefIconBut(block, BUT, 0, ICON_X, 0, 0, UI_UNIT_X, UI_UNIT_Y, NULL, 0, 0, 0, 0, NULL);
uiButSetNFunc(but, template_id_cb, MEM_dupallocN(template), SET_INT_IN_POINTER(UI_ID_DELETE));
+
+ if(RNA_property_flag(template->prop) & PROP_NEVER_NULL)
+ uiButSetFlag(but, UI_BUT_DISABLED);
}
if((idfrom && idfrom->lib))
More information about the Bf-blender-cvs
mailing list