summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-19 11:56:41 +0100
committerGitHub <noreply@github.com>2020-11-19 11:56:41 +0100
commitb115ea4c28f16a2d894c126f573599508fb2683d (patch)
tree86fee01b07b42a167e3a62d5db471f344452ef68
parent68f24175286ec26a4a9a1566d8e25a1fbe6f4caa (diff)
parent71d1909b39b96c1fde253b575bc91c33219f60a3 (diff)
Merge pull request #43681 from aaronfranke/grid-view-update
Update the 3D grid when the "View Grid" checkbox is changed
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index 28acb26012..fa7300c930 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -5013,6 +5013,8 @@ void Node3DEditor::_menu_item_pressed(int p_option) {
}
}
}
+ _finish_grid();
+ _init_grid();
view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(p_option), grid_enabled);