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
path: root/source
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2016-10-28 18:56:09 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2016-10-28 19:08:30 +0300
commit194a33ff001bb240d15268caf6ec0a4738b30225 (patch)
treeb776af9bbb06ea45ef5f0dd7bd79558611128594 /source
parent03b8531cea965818f04520cdd1c488594dd195cb (diff)
CacheFile: only enable scale property slider if we are editing the cache
through a constraint. It doesn't make sense and is a bit confusing to have this property enabled in the modifier context.
Diffstat (limited to 'source')
-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 36f65065fa1..bdad667f206 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -3886,6 +3886,8 @@ void uiTemplateCacheFile(uiLayout *layout, bContext *C, PointerRNA *ptr, const c
return;
}
+ SpaceButs *sbuts = CTX_wm_space_buts(C);
+
uiLayout *row = uiLayoutRow(layout, false);
uiBlock *block = uiLayoutGetBlock(row);
uiDefBut(block, UI_BTYPE_LABEL, 0, IFACE_("File Path:"), 0, 19, 145, 19, NULL, 0, 0, 0, 0, "");
@@ -3911,6 +3913,7 @@ void uiTemplateCacheFile(uiLayout *layout, bContext *C, PointerRNA *ptr, const c
uiItemL(row, IFACE_("Manual Transform:"), ICON_NONE);
row = uiLayoutRow(layout, false);
+ uiLayoutSetEnabled(row, (sbuts->mainb == BCONTEXT_CONSTRAINT));
uiItemR(row, &fileptr, "scale", 0, "Scale", ICON_NONE);
/* TODO: unused for now, so no need to expose. */