소스 검색

updates value when calling setUnit (#28299)

ycw 1 년 전
부모
커밋
153cc13f76
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      editor/js/libs/ui.js

+ 2 - 0
editor/js/libs/ui.js

@@ -782,6 +782,8 @@ class UINumber extends UIElement {
 
 		this.unit = unit;
 
+		this.setValue( this.value );
+
 		return this;
 
 	}