2.5 3D View Properties UI:

Show text "Nothing selected" in "Transform" panel (edit mode) rather than only the empty panel.
This commit is contained in:
Thomas Dinges 2011-03-28 15:01:19 +00:00
parent d766111632
commit 859d22467d

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