diff --git a/package.json b/package.json index 6a0b294d..bffbf330 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "howler": "^2.2.4", "pako": "^2.1.0", "pixi-filters": "^6.0.0", - "pixi.js": "~8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.6", diff --git a/packages/api/package.json b/packages/api/package.json index 65398726..564756e5 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -14,7 +14,7 @@ }, "main": "./index", "dependencies": { - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "typescript": "~5.4.2" diff --git a/packages/assets/package.json b/packages/assets/package.json index 586612d0..e5fb995b 100644 --- a/packages/assets/package.json +++ b/packages/assets/package.json @@ -16,7 +16,7 @@ "@nitrots/api": "1.0.0", "@nitrots/eslint-config": "1.0.0", "@nitrots/utils": "1.0.0", - "pixi.js": "^8.0.4", + "pixi.js": "^8.1.0", "@pixi/gif": "^3.0.0" }, "devDependencies": { diff --git a/packages/camera/package.json b/packages/camera/package.json index e3350046..a6f31744 100644 --- a/packages/camera/package.json +++ b/packages/camera/package.json @@ -16,7 +16,7 @@ "@nitrots/eslint-config": "1.0.0", "@nitrots/events": "1.0.0", "@nitrots/utils": "1.0.0", - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "typescript": "~5.4.2" diff --git a/packages/localization/package.json b/packages/localization/package.json index 2d0175a0..e86ded7f 100644 --- a/packages/localization/package.json +++ b/packages/localization/package.json @@ -15,7 +15,7 @@ "@nitrots/configuration": "1.0.0", "@nitrots/eslint-config": "1.0.0", "@nitrots/events": "1.0.0", - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "typescript": "~5.4.2" diff --git a/packages/room/package.json b/packages/room/package.json index 367a78d1..fcfcb78c 100644 --- a/packages/room/package.json +++ b/packages/room/package.json @@ -18,7 +18,7 @@ "@nitrots/eslint-config": "1.0.0", "@nitrots/events": "1.0.0", "@nitrots/session": "1.0.0", - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "typescript": "~5.4.2" diff --git a/packages/room/src/renderer/RoomSpriteCanvas.ts b/packages/room/src/renderer/RoomSpriteCanvas.ts index e3f7a0be..00dc6f58 100644 --- a/packages/room/src/renderer/RoomSpriteCanvas.ts +++ b/packages/room/src/renderer/RoomSpriteCanvas.ts @@ -580,7 +580,16 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas if(this._spritePool.length > 0) extendedSprite = this._spritePool.pop(); - if(!extendedSprite) extendedSprite = new ExtendedSprite({}); + let textureSet = false; + + if(!extendedSprite) + { + extendedSprite = new ExtendedSprite({ + texture: sprite.texture + }); + + textureSet = true; + } if(extendedSprite.children.length) extendedSprite.removeChildren(); @@ -598,7 +607,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas extendedSprite.blendMode = sprite.blendMode; extendedSprite.filters = sprite.filters; - extendedSprite.setTexture(sprite.texture); + if(!textureSet) extendedSprite.setTexture(sprite.texture); if(sprite.flipH) extendedSprite.scale.x = -1; diff --git a/packages/session/package.json b/packages/session/package.json index 65b6d7f0..31f9fab4 100644 --- a/packages/session/package.json +++ b/packages/session/package.json @@ -17,7 +17,7 @@ "@nitrots/eslint-config": "1.0.0", "@nitrots/events": "1.0.0", "@nitrots/localization": "1.0.0", - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "typescript": "~5.4.2" diff --git a/packages/sound/package.json b/packages/sound/package.json index f8b22f92..bd8c5a2e 100644 --- a/packages/sound/package.json +++ b/packages/sound/package.json @@ -13,7 +13,7 @@ "@nitrots/api": "1.0.0", "@nitrots/communication": "1.0.0", "@nitrots/eslint-config": "1.0.0", - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "typescript": "~5.4.2" diff --git a/packages/utils/package.json b/packages/utils/package.json index 7029cce7..a749955e 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -13,7 +13,7 @@ "@nitrots/api": "1.0.0", "@nitrots/eslint-config": "1.0.0", "pako": "^2.1.0", - "pixi.js": "^8.0.4" + "pixi.js": "^8.1.0" }, "devDependencies": { "@types/pako": "^2.0.3", diff --git a/yarn.lock b/yarn.lock index ce04fcdb..124a000a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1104,10 +1104,10 @@ pixi-filters@^6.0.0: resolved "https://registry.yarnpkg.com/pixi-filters/-/pixi-filters-6.0.0.tgz#36f480f87b8f66b259db40acb7a6b134e570c473" integrity sha512-9wJn4bfQKak+lefyk9BSCenhMBvGQi2t4Uz+BVqw6WK8wM2NgqeTC64mhXRtrdYeCG9gIFX0Lc6q1S8rBqwJbg== -pixi.js@^8.0.4, pixi.js@~8.0.4: - version "8.0.4" - resolved "https://registry.yarnpkg.com/pixi.js/-/pixi.js-8.0.4.tgz#77449a82354d29fb39c78c3ca23602bf6082e136" - integrity sha512-UAa3WU5FV4kjwjYosbG3pi1QvTBKSLPH7BOLkw5X4g12+Xxew3YwMiM+V1EQL4/65hDn5Z3jhFC3xVAsHFJcsQ== +pixi.js@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/pixi.js/-/pixi.js-8.1.0.tgz#c1a6c81993f75bc13882e4570df0d51cc136965b" + integrity sha512-qclFipWxKavNZoOE0QjGgEklbxjc1mpHf46adsxYLz7O7RnV44PPkq1J5Ssa6y1JxtYUX0fwbphoE/gz276glA== dependencies: "@pixi/colord" "^2.9.6" "@types/css-font-loading-module" "^0.0.12"