瀏覽代碼

Update image.ts

Added image._markAsDirty(); on update to cellId
http://www.html5gamedevs.com/topic/34365-gui-imagecellid-doesnt-update-the-image/
aWeirdo 7 年之前
父節點
當前提交
8786cbb2a8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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) {