diff --git a/package-lock.json b/package-lock.json index a09c69c..ab21904 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@pixi/extension-scripts": "^2.4.1", - "pixi.js": "^8.0.1", + "pixi.js": "^8.1.3", "typescript": "^5.4.2" }, "engines": { @@ -21,7 +21,7 @@ "npm": ">=8" }, "peerDependencies": { - "pixi.js": "^8.0.0" + "pixi.js": "^8.1.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -12547,9 +12547,9 @@ } }, "node_modules/pixi.js": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-8.0.1.tgz", - "integrity": "sha512-SGtkod644kb/k+hTvSSk9ywpmvgdjiX+gK6NF8He1xyQ0XCRn5ZqN37EPEBsg0ffadjZ40mqtO+2oXyEOLrWzw==", + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/pixi.js/-/pixi.js-8.1.3.tgz", + "integrity": "sha512-8m+/1Bam4uGW6Ar+ozyOkMJuLcefT8PmuKqebMxDKIt93YgjWkAMg8xrWRJHYVx7uGl0VyIJSP1ILX2jpTnrmA==", "dev": true, "dependencies": { "@pixi/colord": "^2.9.6", diff --git a/package.json b/package.json index 20707ab..8bd948f 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,11 @@ }, "devDependencies": { "@pixi/extension-scripts": "^2.4.1", - "pixi.js": "^8.0.1", + "pixi.js": "^8.1.3", "typescript": "^5.4.2" }, "peerDependencies": { - "pixi.js": "^8.0.0" + "pixi.js": "^8.1.2" }, "engines": { "node": ">=16", diff --git a/src/Spine.ts b/src/Spine.ts index f74c207..51fcd40 100644 --- a/src/Spine.ts +++ b/src/Spine.ts @@ -239,9 +239,11 @@ export class Spine extends Container implements View if (this.didViewUpdate) return; this.didViewUpdate = true; - if (this.renderGroup) + const renderGroup = this.renderGroup || this.parentRenderGroup; + + if (renderGroup) { - this.renderGroup.onChildViewUpdate(this); + renderGroup.onChildViewUpdate(this); } this.debug?.renderDebug(this);