Sfoglia il codice sorgente

Fix Button 3D content swap

Sebastien Vandenberghe 5 anni fa
parent
commit
69be5814e0
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      gui/src/3D/controls/button3D.ts

+ 3 - 0
gui/src/3D/controls/button3D.ts

@@ -124,6 +124,9 @@ export class Button3D extends AbstractButton3D {
             this._facadeTexture.rootContainer.scaleY = this._contentScaleRatio;
             this._facadeTexture.premulAlpha = true;
         }
+        else {
+            this._facadeTexture.rootContainer.clearControls();
+        }
 
         this._facadeTexture.addControl(value);