From 147d03d083f4a257bc735620e835ed913c5e450f Mon Sep 17 00:00:00 2001 From: Kolo <67389779+JustKolosaki@users.noreply.github.com> Date: Tue, 15 Oct 2024 07:19:17 +0200 Subject: [PATCH] one super small change to StageDataHandler.hx basically made it split the names of objects to get rid of da slash,,,,,,,, --- .../funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx b/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx index 56dc7a775b..67233dbc61 100644 --- a/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx +++ b/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx @@ -292,12 +292,13 @@ class StageDataHandler for (objData in data.props) { var spr = new StageEditorObject(); - if (!objData.assetPath.startsWith("#")) state.bitmaps.set(objData.assetPath, Assets.getBitmapData(Paths.image(objData.assetPath))); + var daName = objData.assetPath.split("/")[objData.assetPath.split("/").length - 1]; + if (!objData.assetPath.startsWith("#")) state.bitmaps.set(daName, Assets.getBitmapData(Paths.image(objData.assetPath))); spr.fromData( { name: objData.name ?? "Unnamed", - assetPath: objData.assetPath, + assetPath: daName, animations: objData.animations.copy(), scale: objData.scale, position: objData.position,