mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-30 15:42:42 +08:00
Remove setting to show grid in display mode
This commit is contained in:
parent
6eeaf4541d
commit
6f57ec1fac
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user