소스 검색

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();
         }