Skip to content

Commit

Permalink
one super small change to StageDataHandler.hx
Browse files Browse the repository at this point in the history
basically made it split the names of objects to get rid of da slash,,,,,,,,
  • Loading branch information
KoloInDaCrib authored Oct 15, 2024
1 parent 0ad02e4 commit 147d03d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 147d03d

Please sign in to comment.