Parcourir la source

Update image.ts

aWeirdo il y a 7 ans
Parent
commit
d87cf174d0
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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();
         }