1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Make viewport grid visible on all three planes in ortho camera view

This commit is contained in:
Zi Ye
2024-07-02 12:26:44 -05:00
parent f0d15bbfdf
commit 72a01816a4
2 changed files with 6 additions and 6 deletions

View File

@@ -7296,9 +7296,9 @@ void Node3DEditor::_init_grid() {
int primary_grid_steps = EDITOR_GET("editors/3d/primary_grid_steps");
// Which grid planes are enabled? Which should we generate?
grid_enable[0] = grid_visible[0] = EDITOR_GET("editors/3d/grid_xy_plane");
grid_enable[1] = grid_visible[1] = EDITOR_GET("editors/3d/grid_yz_plane");
grid_enable[2] = grid_visible[2] = EDITOR_GET("editors/3d/grid_xz_plane");
grid_enable[0] = grid_visible[0] = orthogonal || EDITOR_GET("editors/3d/grid_xy_plane");
grid_enable[1] = grid_visible[1] = orthogonal || EDITOR_GET("editors/3d/grid_yz_plane");
grid_enable[2] = grid_visible[2] = orthogonal || EDITOR_GET("editors/3d/grid_xz_plane");
// Offsets division_level for bigger or smaller grids.
// Default value is -0.2. -1.0 gives Blender-like behavior, 0.5 gives huge grids.