three-base 2.0.70 → 2.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,7 @@ export default class InstancedMeshBase extends MeshBase {
29
29
  instanceColor = new InstancedBufferAttribute(new Float32Array(0 * 3), 3);
30
30
  // 重构加载模型的方法
31
31
  async loadModel(url, filename = "") {
32
+ this.url = url;
32
33
  if (!url) {
33
34
  this.clear();
34
35
  return;
@@ -43,6 +43,9 @@ export default class InstancedMeshBase extends MeshBase {
43
43
 
44
44
  // 重构加载模型的方法
45
45
  async loadModel(url: string, filename: string = "") {
46
+
47
+ this.url = url;
48
+
46
49
  if (!url) {
47
50
  this.clear();
48
51
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.70",
3
+ "version": "2.0.71",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"