mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 14:36:26 +01:00
Update RoomSpriteCanvas
This commit is contained in:
parent
09915dc80a
commit
2fc62ef718
@ -345,8 +345,6 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
|
||||
|
||||
if(!this._container || !this._geometry) return;
|
||||
|
||||
this.doMagic();
|
||||
|
||||
if((this._width !== this._renderedWidth) || (this._height !== this._renderedHeight)) update = true;
|
||||
|
||||
if((this._display.x !== this._screenOffsetX) || (this._display.y !== this._screenOffsetY))
|
||||
@ -364,6 +362,8 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
|
||||
update = true;
|
||||
}
|
||||
|
||||
this.doMagic();
|
||||
|
||||
const frame = Math.round(this._totalTimeRunning / (60 / this._animationFPS));
|
||||
|
||||
let updateVisuals = false;
|
||||
|
Loading…
Reference in New Issue
Block a user