You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Fixed #470 View grid toggle in 3d not working
This commit is contained in:
@@ -2653,6 +2653,13 @@ void SpatialEditor::_menu_item_pressed(int p_option) {
|
|||||||
|
|
||||||
grid_enabled=!is_checked;
|
grid_enabled=!is_checked;
|
||||||
|
|
||||||
|
for(int i=0;i<3;++i) {
|
||||||
|
if (grid_enable[i]) {
|
||||||
|
VisualServer::get_singleton()->instance_geometry_set_flag(grid_instance[i],VS::INSTANCE_FLAG_VISIBLE,grid_enabled);
|
||||||
|
grid_visible[i]=grid_enabled;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
view_menu->get_popup()->set_item_checked( view_menu->get_popup()->get_item_index(p_option), grid_enabled );
|
view_menu->get_popup()->set_item_checked( view_menu->get_popup()->get_item_index(p_option), grid_enabled );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user