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,