Coordinates snap to grid bounds when zoomed out
This commit is contained in:
parent
7c859ab097
commit
e9cb3d9e58
3 changed files with 83 additions and 31 deletions
|
|
@ -48,7 +48,7 @@ void GridModifyTool::gui_toolbox() {
|
|||
});
|
||||
g.gridType = static_cast<WorldGrid::GridType>(typeSelected);
|
||||
uint32_t sDiv = g.get_subdivisions();
|
||||
t.gui.input_scalar_field<uint32_t>("Subdivisions", "Subdivisions", &sDiv, 0, 10);
|
||||
t.gui.input_scalar_field<uint32_t>("Subdivisions", "Subdivisions", &sDiv, 1, 10);
|
||||
g.set_subdivisions(sDiv);
|
||||
bool divOut = g.get_remove_divisions_outwards();
|
||||
t.gui.checkbox_field("Subdivide outwards", "Subdivide outwards", &divOut);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue