Fix T46711: view3d UI limits not scaled w/ scene

With the scene scale set to 0.001, buttons were clamped to 10m.
This commit is contained in:
Campbell Barton 2015-11-11 00:55:26 +11:00
parent c23179f367
commit 0024306362
Notes: blender-bot 2023-02-14 08:27:35 +01:00
Referenced by issue #46711, If an x, y, or z coordinate is more than 10m (10,000 units), the coordinates in the properties panel (N), do not give the right number
1 changed files with 1 additions and 1 deletions

View File

@ -1156,7 +1156,7 @@ static void view3d_panel_transform(const bContext *C, Panel *pa)
}
else {
View3D *v3d = CTX_wm_view3d(C);
const float lim = 10000.0f * max_ff(1.0f, v3d->grid);
const float lim = 10000.0f * max_ff(1.0f, ED_view3d_grid_scale(scene, v3d, NULL));
v3d_editvertex_buts(col, v3d, ob, lim);
}
}