From d62250a3e05381dd2ac4f7e781a9d8192d688640 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Sun, 26 Jul 2020 21:20:37 -0400 Subject: UI: Show message in transform panel when no metaball elements are selected The complete lack of a transform panel was confusing enough to spawn this question: https://blender.stackexchange.com/q/169074/599 Displaying a message instead of nothing is more consistent with the behavior of the mesh transform panel anyway. Reviewed By: Blendify Differential Revision: https://developer.blender.org/D8390 --- source/blender/editors/space_view3d/view3d_buttons.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c index 2e170126574..d78c58c0c64 100644 --- a/source/blender/editors/space_view3d/view3d_buttons.c +++ b/source/blender/editors/space_view3d/view3d_buttons.c @@ -1474,6 +1474,7 @@ static void v3d_editmetaball_buts(uiLayout *layout, Object *ob) uiLayout *col; if (!mball || !(mball->lastelem)) { + uiItemL(layout, IFACE_("Nothing selected"), ICON_NONE); return; } -- cgit v1.2.3