From f214b533dbc8d6781dfa26202cc6568558dbdb4f Mon Sep 17 00:00:00 2001 From: Azmoria <65363489+Azmoria@users.noreply.github.com> Date: Sun, 23 Jul 2023 11:10:15 -0400 Subject: [PATCH] Beta Fix - Grid preview size on scaled maps --- ScenesPanel.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/ScenesPanel.js b/ScenesPanel.js index 21f1d089d..425339feb 100644 --- a/ScenesPanel.js +++ b/ScenesPanel.js @@ -328,22 +328,6 @@ function edit_scene_vision_settings(scene_id){ return toggle } - function handle_form_grid_on_change(){ - // not editting this scene, don't show live updates to grid - if (scene.id !== window.CURRENT_SCENE_DATA.id){ - return - } - - const {hpps, vpps, offsetx, offsety, grid_color, grid_line_width, grid_subdivided, grid} = get_edit_form_data() - // redraw grid with new information - if(grid === "1"){ - redraw_grid(parseFloat(hpps), parseFloat(vpps), offsetx, offsety, grid_color, grid_line_width, grid_subdivided ) - } - // redraw grid using current scene data - else if(grid === "0"){ - clear_grid() - } - } $("#edit_dialog").remove(); @@ -571,7 +555,7 @@ function edit_scene_dialog(scene_id) { const {hpps, vpps, offsetx, offsety, grid_color, grid_line_width, grid_subdivided, grid} = get_edit_form_data() // redraw grid with new information if(grid === "1"){ - redraw_grid(parseFloat(hpps), parseFloat(vpps), offsetx, offsety, grid_color, grid_line_width, grid_subdivided ) + redraw_grid(parseFloat(hpps)*parseInt(window.CURRENT_SCENE_DATA.scale_factor), parseFloat(vpps)*parseInt(window.CURRENT_SCENE_DATA.scale_factor), offsetx, offsety, grid_color, grid_line_width, grid_subdivided ) } // redraw grid using current scene data else if(grid === "0"){