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
This commit is contained in:
Aaron Carlisle 2020-07-26 21:20:37 -04:00
parent 9e7ee39385
commit d62250a3e0
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}