From 95fc7fab7369a5c9627f64373308c2f24f6cb7ad Mon Sep 17 00:00:00 2001 From: Maddogmaycry Date: Wed, 14 Oct 2020 18:59:14 +0200 Subject: [PATCH] Next scene armature BUG. Armatura with same name no wanna loading on the next scene. --- Phaser/3.x/out/dragonBones.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Phaser/3.x/out/dragonBones.js b/Phaser/3.x/out/dragonBones.js index 73c3a699..a2be6dfe 100644 --- a/Phaser/3.x/out/dragonBones.js +++ b/Phaser/3.x/out/dragonBones.js @@ -15670,8 +15670,13 @@ var dragonBones; this._renderTexture = value; for (var k in this.textures) { var data = this.textures[k]; - var frame = this._renderTexture.add(k, 0, // all textures were added through `textures.addImage`, so their sourceIndex are all 0 - data.region.x, data.region.y, data.region.width, data.region.height); + if(!this._renderTexture.frames[data.name]){ + var frame = this._renderTexture.add(k, 0, // all textures were added through `textures.addImage`, so their sourceIndex are all 0 + data.region.x, data.region.y, data.region.width, data.region.height); + } + else { + var frame = this._renderTexture.frames[data.name]; + } if (data.rotated) { frame.rotated = true; frame.updateUVsInverted();