fix(sdk): keep dynamic path flowing when scene is static
This commit is contained in:
@@ -65,6 +65,8 @@ export default class Path extends THREE.Mesh {
|
||||
if (Path.flowSignalBound) return;
|
||||
Path.flowSignalBound = true;
|
||||
useAddSignal("sceneRendered", Path.handleFlowTick);
|
||||
// 立即请求一帧渲染,防止场景静止时 sceneRendered 永远不触发导致流动停止
|
||||
(App.viewer as any)?.pluginRequestRender?.(true);
|
||||
}
|
||||
|
||||
private static unbindFlowSignal() {
|
||||
|
||||
Reference in New Issue
Block a user