diff --git a/spine-ts/spine-construct3/src/instance.ts b/spine-ts/spine-construct3/src/instance.ts index b46836e4e..18e1e4656 100644 --- a/spine-ts/spine-construct3/src/instance.ts +++ b/spine-ts/spine-construct3/src/instance.ts @@ -218,7 +218,7 @@ class SpineC3PluginInstance extends SDK.IWorldInstanceBase { } else { iRenderer.SetAlphaBlend(); - const logo = (this._sdkType as SpineC3PluginType).getSpineLogo(iRenderer); + const logo = (this._sdkType as SpineC3PluginType).getSpineLogo(iRenderer, this.layoutView); if (logo) { iRenderer.SetColorRgba(1, 1, 1, errorsString ? 0.25 : 1); iRenderer.SetTexture(logo); diff --git a/spine-ts/spine-construct3/src/type.ts b/spine-ts/spine-construct3/src/type.ts index c1ecccf53..82f71e376 100644 --- a/spine-ts/spine-construct3/src/type.ts +++ b/spine-ts/spine-construct3/src/type.ts @@ -8,7 +8,7 @@ export class SpineC3PluginType extends SDK.ITypeBase { spineLogo?: SDK.Gfx.IWebGLTexture; private spineLogoRequested = false; - getSpineLogo (iRenderer: SDK.Gfx.IWebGLRenderer) { + getSpineLogo (iRenderer: SDK.Gfx.IWebGLRenderer, iLayoutView: SDK.UI.ILayoutView) { if (this.spineLogo) return this.spineLogo; if (this.spineLogoRequested) return undefined; @@ -20,6 +20,7 @@ export class SpineC3PluginType extends SDK.ITypeBase { this.spineLogo = iRenderer.CreateDynamicTexture(image.width, image.height); iRenderer.UpdateTexture(image, this.spineLogo); + iLayoutView.Refresh(); }) }