Browse Source

Editor: Add support for pic extension.

Mr.doob 3 năm trước cách đây
mục cha
commit
5340bf3e8b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/js/libs/ui.three.js

+ 1 - 1
editor/js/libs/ui.three.js

@@ -50,7 +50,7 @@ class UITexture extends UISpan {
 			const extension = file.name.split( '.' ).pop().toLowerCase();
 			const reader = new FileReader();
 
-			if ( extension === 'hdr' ) {
+			if ( extension === 'hdr' || extension === 'pic' ) {
 
 				reader.addEventListener( 'load', function ( event ) {