From 360c49241516d3171128974618fd4badc2c76243 Mon Sep 17 00:00:00 2001 From: Kolo <67389779+JustKolosaki@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:37:23 +0200 Subject: [PATCH] revert last commit for i am an idiot --- .../funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx b/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx index 67233dbc61..56dc7a775b 100644 --- a/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx +++ b/source/funkin/ui/debug/stageeditor/handlers/StageDataHandler.hx @@ -292,13 +292,12 @@ class StageDataHandler for (objData in data.props) { var spr = new StageEditorObject(); - var daName = objData.assetPath.split("/")[objData.assetPath.split("/").length - 1]; - if (!objData.assetPath.startsWith("#")) state.bitmaps.set(daName, Assets.getBitmapData(Paths.image(objData.assetPath))); + if (!objData.assetPath.startsWith("#")) state.bitmaps.set(objData.assetPath, Assets.getBitmapData(Paths.image(objData.assetPath))); spr.fromData( { name: objData.name ?? "Unnamed", - assetPath: daName, + assetPath: objData.assetPath, animations: objData.animations.copy(), scale: objData.scale, position: objData.position,