feat(web): author scene collection visibility
This commit is contained in:
BIN
web/app/src/vendor/blender/web_engine.wasm
vendored
BIN
web/app/src/vendor/blender/web_engine.wasm
vendored
Binary file not shown.
@@ -684,6 +684,14 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
|
||||
if (properties.samples !== undefined && (!Number.isSafeInteger(properties.samples) || properties.samples < 0 || properties.samples > 1000000)) throw report("RENDER_PROPERTY_INVALID", "Scene view layer samples are outside the bounded range");
|
||||
return;
|
||||
}
|
||||
case "setSceneCollectionSettings": {
|
||||
const scene = currentSnapshot?.scenes.find((candidate) => candidate.id === payload.dataId);
|
||||
if (!scene || typeof payload.layerName !== "string" || payload.layerName.length === 0 || typeof payload.collectionId !== "string" || payload.collectionId.length === 0) throw report("RENDER_PROPERTY_INVALID", "Scene collection target is invalid");
|
||||
const properties = payload.properties;
|
||||
if (!validPropertyKeys(properties, ["exclude", "holdout", "indirectOnly", "hide"])) throw report("RENDER_PROPERTY_INVALID", "Scene collection properties are invalid");
|
||||
for (const field of ["exclude", "holdout", "indirectOnly", "hide"] as const) if (properties[field] !== undefined && typeof properties[field] !== "boolean") throw report("RENDER_PROPERTY_INVALID", `Scene collection ${field} must be boolean`);
|
||||
return;
|
||||
}
|
||||
case "setGeometryNodeGraph": {
|
||||
const snapshot = currentSnapshot;
|
||||
const availableResourceIds = new Set([
|
||||
|
||||
Reference in New Issue
Block a user