diff options
author | Thomas Dinges <blender@dingto.org> | 2011-03-28 19:01:19 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-03-28 19:01:19 +0400 |
commit | 859d22467d406d8be9269035e271bd9ad7c935b4 (patch) | |
tree | 319d68126877d1e161b5675948554a7768705414 /source | |
parent | d766111632014f346827ccd15a6741b3e898842e (diff) |
2.5 3D View Properties UI:
Show text "Nothing selected" in "Transform" panel (edit mode) rather than only the empty panel.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_buttons.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c index cd6f8954430..549a547b846 100644 --- a/source/blender/editors/space_view3d/view3d_buttons.c +++ b/source/blender/editors/space_view3d/view3d_buttons.c @@ -277,8 +277,10 @@ static void v3d_editvertex_buts(uiLayout *layout, View3D *v3d, Object *ob, float } } - if(tot==0) return; - + if(tot==0) { + uiDefBut(block, LABEL, 0, "Nothing selected",0, 130, 200, 20, NULL, 0, 0, 0, 0, ""); + return; + } median[0] /= (float)tot; median[1] /= (float)tot; median[2] /= (float)tot; |