Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Sarti <vekoon@gmail.com>2010-02-22 01:55:35 +0300
committerElia Sarti <vekoon@gmail.com>2010-02-22 01:55:35 +0300
commit835c353aaa475511d2b5d955be74d4bee9031692 (patch)
tree3fa6df8bcafe0e6b49bf3ff0a3aaa23141ff57e0 /source/blender/editors/interface
parent37b9c9fe4dc6a4adea419ce6b20b28dd60e24794 (diff)
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
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_templates.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 4c818f9d0ac..313e7b67183 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -449,6 +449,9 @@ static void template_ID(bContext *C, uiLayout *layout, TemplateID *template, Str
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))