three-base 2.0.77 → 2.0.78
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.
- package/ThreeBase.js +6 -2
- package/ThreeBase.ts +6 -2
- package/package.json +1 -1
package/ThreeBase.js
CHANGED
|
@@ -251,11 +251,15 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
251
251
|
// 资源加载进度有更新时, 需要渲染
|
|
252
252
|
threeLoader.addEventListener("loadding", () => {
|
|
253
253
|
this.dispatchEvent({ type: "loadding" });
|
|
254
|
-
|
|
254
|
+
setTimeout(() => {
|
|
255
|
+
this.needRender = true;
|
|
256
|
+
}, 100);
|
|
255
257
|
});
|
|
256
258
|
threeLoader.addEventListener("onLoad", () => {
|
|
257
259
|
this.dispatchEvent({ type: "onLoad" });
|
|
258
|
-
|
|
260
|
+
setTimeout(() => {
|
|
261
|
+
this.needRender = true;
|
|
262
|
+
}, 100);
|
|
259
263
|
});
|
|
260
264
|
}
|
|
261
265
|
// 重置控制器的位置
|
package/ThreeBase.ts
CHANGED
|
@@ -295,12 +295,16 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
295
295
|
// 资源加载进度有更新时, 需要渲染
|
|
296
296
|
threeLoader.addEventListener("loadding", () => {
|
|
297
297
|
this.dispatchEvent({ type: "loadding" } as never);
|
|
298
|
-
|
|
298
|
+
setTimeout(() => {
|
|
299
|
+
this.needRender = true;
|
|
300
|
+
}, 100);
|
|
299
301
|
});
|
|
300
302
|
|
|
301
303
|
threeLoader.addEventListener("onLoad", () => {
|
|
302
304
|
this.dispatchEvent({ type: "onLoad" } as never);
|
|
303
|
-
|
|
305
|
+
setTimeout(() => {
|
|
306
|
+
this.needRender = true;
|
|
307
|
+
}, 100);
|
|
304
308
|
});
|
|
305
309
|
|
|
306
310
|
}
|