Selaa lähdekoodia

Fix Button 3D content swap

Sebastien Vandenberghe 5 vuotta sitten
vanhempi
commit
69be5814e0
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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);