fix(sdk): keep dynamic path flowing when scene is static

This commit is contained in:
plum
2026-04-13 15:25:06 +08:00
parent 985c8d39fc
commit d7c36e31f7
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -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() {