Skip to content

Commit

Permalink
obviousAlexC/penPlus: Fix texture handling between versions of pen+ (#…
Browse files Browse the repository at this point in the history
…1510)

this fixes one half of #1508 the other half is from the blocks making the depth being negative.
Thanks to https://github.com/penta-quark-neutro for reporting this bug.
I have migrated the costume handling from the experimental version
  • Loading branch information
David-Orangemoon authored Jun 4, 2024
1 parent a703249 commit f8ba165
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/obviousAlexC/penPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3133,8 +3133,10 @@
curTarget.setCostume(costIndex);
}

currentTexture =
renderer._allSkins[curCostume.skinId]._uniforms.u_skin;
currentTexture = renderer._allSkins[curCostume.skinId]._texture;

if (!currentTexture)
currentTexture = renderer._allSkins[curCostume.skinId].getTexture();
}
}

Expand Down

0 comments on commit f8ba165

Please sign in to comment.