فهرست منبع

bad import example in docs (#25813)

* fix import statement in docs (en)

* fix import statement in docs (zh)
makc 2 سال پیش
والد
کامیت
a15bce870e
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      docs/examples/en/utils/BufferGeometryUtils.html
  2. 1 1
      docs/examples/zh/utils/BufferGeometryUtils.html

+ 1 - 1
docs/examples/en/utils/BufferGeometryUtils.html

@@ -21,7 +21,7 @@
 		</p>
 
 		<code>
-			import { BufferGeometryUtils } from 'three/addons/utils/BufferGeometryUtils.js';
+			import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
 		</code>
 
 		<h2>Methods</h2>

+ 1 - 1
docs/examples/zh/utils/BufferGeometryUtils.html

@@ -21,7 +21,7 @@
 		</p>
 
 		<code>
-			import { BufferGeometryUtils } from 'three/addons/utils/BufferGeometryUtils.js';
+			import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
 		</code>
 
 		<h2>方法</h2>