Skip to content

Commit bc14394

Browse files
committed
Revert to using getTexture in _touchingBounds
Not confident that it does not cause issues as this seems to be the only thing ensuring that the textures used for collision are actually up-to-date, and using the 1x zoom specifically is definitely needed for compatibility with Scratch quirks.
1 parent 758acb1 commit bc14394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RenderWebGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ class RenderWebGL extends EventEmitter {
16361636
const drawable = this._allDrawables[drawableID];
16371637

16381638
/** @todo remove this once URL-based skin setting is removed. */
1639-
if (!drawable.skin || !drawable.skin.isMetricsReady()) return null;
1639+
if (!drawable.skin || !drawable.skin.getTexture([100, 100])) return null;
16401640

16411641
const bounds = drawable.getFastBounds();
16421642

0 commit comments

Comments
 (0)