From 5ab7efb77821d0ea4e187bde1ed0e668e1783809 Mon Sep 17 00:00:00 2001 From: Tanasart Date: Sun, 23 Jun 2024 07:51:35 +0700 Subject: [PATCH] - [SVG In] Fix node not read svg file with extra tags. --- objects/o_main/Create_0.gml | 5 ++--- scripts/globals/globals.gml | 2 +- .../node_render_sprite_sheet/node_render_sprite_sheet.gml | 8 ++++---- scripts/node_svg/node_svg.gml | 4 ++++ scripts/svg_reader/svg_reader.gml | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/objects/o_main/Create_0.gml b/objects/o_main/Create_0.gml index e9a26a8e0..41ddcfa39 100644 --- a/objects/o_main/Create_0.gml +++ b/objects/o_main/Create_0.gml @@ -228,11 +228,10 @@ break; } - if(!IS_CMD)PANEL_GRAPH.mouse_grid_y += 160; + if(!IS_CMD) PANEL_GRAPH.mouse_grid_y += 160; } - if(node && !IS_CMD) - PANEL_GRAPH.toCenterNode(); + // if(node && !IS_CMD) PANEL_GRAPH.toCenterNode(); } } #endregion diff --git a/scripts/globals/globals.gml b/scripts/globals/globals.gml index e2f3a86ad..546affd1f 100644 --- a/scripts/globals/globals.gml +++ b/scripts/globals/globals.gml @@ -38,7 +38,7 @@ LATEST_VERSION = 11700; VERSION = 11742; SAVE_VERSION = 11700; - VERSION_STRING = "1.17.4.2"; + VERSION_STRING = "1.17.5.001"; BUILD_NUMBER = 11742; globalvar HOTKEYS, HOTKEY_CONTEXT; diff --git a/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml b/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml index d3182d577..1af568d9a 100644 --- a/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml +++ b/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml @@ -86,12 +86,12 @@ function Node_Render_Sprite_Sheet(_x, _y, _group = noone) : Node(_x, _y, _group) inputs[| 9].setVisible(pack == SPRITE_STACK.grid); if(grup == SPRITE_ANIM_GROUP.animation) { - inputs[| 8].editWidget.minn = FIRST_FRAME + 1; - inputs[| 8].editWidget.maxx = LAST_FRAME + 1; + inputs[| 8].editWidget.slide_range[0] = FIRST_FRAME + 1; + inputs[| 8].editWidget.slide_range[1] = LAST_FRAME + 1; if(!user) inputs[| 8].setValueDirect([ FIRST_FRAME + 1, LAST_FRAME + 1], noone, false, 0, false); } else { - inputs[| 8].editWidget.minn = 0; - inputs[| 8].editWidget.maxx = array_length(inpt) - 1; + inputs[| 8].editWidget.slide_range[0] = 0; + inputs[| 8].editWidget.slide_range[1] = array_length(inpt) - 1; if(!user) inputs[| 8].setValueDirect([ 0, array_length(inpt) - 1], noone, false, 0, false); } diff --git a/scripts/node_svg/node_svg.gml b/scripts/node_svg/node_svg.gml index 1ef047b1f..d9aa001b2 100644 --- a/scripts/node_svg/node_svg.gml +++ b/scripts/node_svg/node_svg.gml @@ -58,6 +58,10 @@ function Node_SVG(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { if(ext != ".svg") return; var _rawContent = file_text_read_all_lines(path); + var _st = string_pos("