浏览代码

Update image.ts

aWeirdo 7 年之前
父节点
当前提交
d87cf174d0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      gui/src/controls/image.ts

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

@@ -173,6 +173,10 @@ module BABYLON.GUI {
             return this._cellId;
         }
         set cellId(value: number) {
+            if (this._cellId === value) {
+                 return;
+             }
+            
             this._cellId = value;
             this._markAsDirty();
         }