diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-12-09 13:02:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 13:02:38 +0100 |
commit | c567a971781ac645dbd821f40f79eaeeca3a7830 (patch) | |
tree | 3a90323cb4b21e2b24b1f0b6338b84a13ac0139f | |
parent | 114f97ff110aa0b5c54ea1c8279b21dc73c5efc8 (diff) | |
parent | 8c1d94ebae2eb5f8563c40754ce1ceed04f05978 (diff) |
Merge pull request #44218 from aaronfranke/grid-inst-err
Fix trying to set grid visibility on an invalid instance
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index f52f8c1d01..8f2fc968e3 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -4999,9 +4999,6 @@ void Node3DEditor::_menu_item_pressed(int p_option) { for (int i = 0; i < 3; ++i) { if (grid_enable[i]) { grid_visible[i] = grid_enabled; - if (grid_instance[i].is_valid()) { - RenderingServer::get_singleton()->instance_set_visible(grid_instance[i], grid_enabled); - } } } _finish_grid(); @@ -6160,7 +6157,6 @@ void Node3DEditor::clear() { view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(MENU_VIEW_ORIGIN), true); for (int i = 0; i < 3; ++i) { if (grid_enable[i]) { - RenderingServer::get_singleton()->instance_set_visible(grid_instance[i], true); grid_visible[i] = true; } } |