fix: 修复setValue调用中的render参数,确保机器人标签更新时不进行渲染

This commit is contained in:
xudan 2025-09-11 18:04:25 +08:00
parent 7ce8fe5edb
commit 5c5d04197e

View File

@ -574,7 +574,7 @@ export class EditorService extends Meta2d {
if (isNil(robot)) return;
this.#robotMap.set(id, { ...robot, ...value });
if (value.label) {
this.setValue({ id, text: value.label }, { render: true, history: false, doEvent: false });
this.setValue({ id, text: value.label }, { render: false, history: false, doEvent: false });
}
(<SceneData>this.store.data).robots = [...this.#robotMap.values()];
}