You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 Fix Effects (enable)
This commit is contained in:
@@ -409,7 +409,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
|
||||
const texture = sprite.texture;
|
||||
const baseTexture = texture && texture.source;
|
||||
|
||||
if(!texture || !baseTexture) continue;
|
||||
if(!texture || !baseTexture || baseTexture.destroyed) continue;
|
||||
|
||||
const spriteX = ((x + sprite.offsetX) + this._screenOffsetX);
|
||||
const spriteY = ((y + sprite.offsetY) + this._screenOffsetY);
|
||||
|
||||
@@ -29,7 +29,7 @@ export class ExtendedSprite extends Sprite
|
||||
|
||||
public setTexture(texture: Texture): void
|
||||
{
|
||||
if(!texture) texture = Texture.EMPTY;
|
||||
if(!texture || texture.source?.destroyed) texture = Texture.EMPTY;
|
||||
|
||||
if(texture === this.texture) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user