Files
workinf_Blender_Wasm/web/protocol/geometry-node-commands.ts
mes123456 81113159dc
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
feat(web): continue source-backed implementation waves
2026-08-29 05:46:53 +08:00

10 lines
452 B
TypeScript

import type { GeometryNodeGraphIR } from "./geometry-nodes";
import type { WebEngineEditCommand } from "./web-engine";
/** Workbench constructors for validated Geometry Node graph transactions. */
export const geometryNodeCommands = Object.freeze({
setGraph(meshId: string, graph: GeometryNodeGraphIR): Extract<WebEngineEditCommand, { type: "setGeometryNodeGraph" }> {
return { type: "setGeometryNodeGraph", meshId, graph };
},
} as const);