Skip to content

Commit

Permalink
revert last commit
Browse files Browse the repository at this point in the history
for i am an idiot
  • Loading branch information
KoloInDaCrib authored Oct 16, 2024
1 parent 147d03d commit 360c492
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 360c492

Please sign in to comment.