Jelajahi Sumber

Update image.ts

aWeirdo 7 tahun lalu
induk
melakukan
d87cf174d0
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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();
         }