Fix T38176: can't set vertex coordinate to 0.0 when it's set to 0.0000001.

This commit is contained in:
Brecht Van Lommel 2014-01-13 23:19:46 +01:00
parent ff98be83a9
commit 6eedf08cca
Notes: blender-bot 2023-02-14 11:21:36 +01:00
Referenced by issue #38176, z transform
Referenced by issue #38176, z transform
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ static void v3d_editvertex_buts(uiLayout *layout, View3D *v3d, Object *ob, float
BMesh *bm = em->bm;
BMIter iter;
if (len_v3(&median[LOC_X]) > 0.000001f) {
if (tot == 1 || len_v3(&median[LOC_X]) != 0.0f) {
BMVert *eve;
BM_ITER_MESH (eve, &iter, bm, BM_VERTS_OF_MESH) {