Explorar o código

Update image.ts

aWeirdo %!s(int64=7) %!d(string=hai) anos
pai
achega
d87cf174d0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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();
         }