From f8ba165391b4127519f30697dd27ea4246096564 Mon Sep 17 00:00:00 2001 From: "Dr. Cleve" <76855369+David-Orangemoon@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:22:29 -0400 Subject: [PATCH] obviousAlexC/penPlus: Fix texture handling between versions of pen+ (#1510) this fixes one half of https://github.com/TurboWarp/extensions/issues/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 --- extensions/obviousAlexC/penPlus.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/obviousAlexC/penPlus.js b/extensions/obviousAlexC/penPlus.js index 3e11ecd859..824252c15d 100644 --- a/extensions/obviousAlexC/penPlus.js +++ b/extensions/obviousAlexC/penPlus.js @@ -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(); } }