Fixed #470 View grid toggle in 3d not working

This commit is contained in:
marynate 2014-07-15 13:29:03 +08:00
parent 9ff6d55822
commit e55ef57f62

View File

@ -2653,6 +2653,13 @@ void SpatialEditor::_menu_item_pressed(int p_option) {
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 );