Browse Source

Update image.ts

Added image._markAsDirty(); on update to cellId
http://www.html5gamedevs.com/topic/34365-gui-imagecellid-doesnt-update-the-image/
aWeirdo 7 years ago
parent
commit
8786cbb2a8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gui/src/controls/image.ts

+ 1 - 0
gui/src/controls/image.ts

@@ -174,6 +174,7 @@ module BABYLON.GUI {
         }
         set cellId(value: number) {
             this._cellId = value;
+            this._markAsDirty();
         }
 
         constructor(public name?: string, url: Nullable<string> = null) {