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:
authorThomas Dinges <blender@dingto.org>2011-03-28 19:01:19 +0400
committerThomas Dinges <blender@dingto.org>2011-03-28 19:01:19 +0400
commit859d22467d406d8be9269035e271bd9ad7c935b4 (patch)
tree319d68126877d1e161b5675948554a7768705414 /source
parentd766111632014f346827ccd15a6741b3e898842e (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.c6
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;