Remove setting to show grid in display mode

This commit is contained in:
JannisX11 2022-07-22 18:18:27 +02:00
parent 6eeaf4541d
commit 6f57ec1fac
2 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ const Settings = {
new Setting('full_grid', {category: 'grid', value: false});
new Setting('large_box', {category: 'grid', value: false});
new Setting('large_grid_size', {category: 'grid', value: 3, type: 'number'});
new Setting('display_grid', {category: 'grid', value: false});
//new Setting('display_grid', {category: 'grid', value: false});
new Setting('painting_grid', {category: 'grid', value: true, onChange() {
Canvas.updatePaintingGrid();
}});
@ -380,7 +380,7 @@ const Settings = {
}
}
if (hasSettingChanged('base_grid') || hasSettingChanged('large_grid') || hasSettingChanged('full_grid') || hasSettingChanged('large_grid_size')
||hasSettingChanged('large_box') || hasSettingChanged('display_grid') || hasSettingChanged('edit_size')) {
||hasSettingChanged('large_box') || hasSettingChanged('edit_size')) {
Canvas.buildGrid()
}
Canvas.outlineMaterial.depthTest = !settings.seethrough_outline.value

View File

@ -421,7 +421,7 @@ const Canvas = {
Canvas.side_grids.x.children.length = 0;
Canvas.side_grids.z.children.length = 0;
}
if (Modes.display && settings.display_grid.value === false) return;
if (Modes.display) return;
three_grid.name = 'grid_group'
gizmo_colors.grid.set(parseInt('0x'+CustomTheme.data.colors.grid.replace('#', ''), 16));