fix(web): route voxel remesh to the server backend
The WASM handler is a FEATURE_ROUTE_SERVER_REQUIRED stub while the catalog advertised WEB_MAIN, so the Sculpt Voxel Remesh button always failed. Route the operator to SERVER_NATIVE and drop the hard-coded route check. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -3164,10 +3164,12 @@ function Properties({ selectedEdgeIndices, nonMeshGeometryBuffers, client, snaps
|
||||
try {
|
||||
const { routes } = await client.listFeatureRoutes();
|
||||
const route = routes.find((entry) => entry.id === "operator:OBJECT_OT_voxel_remesh");
|
||||
if (!route || route.route !== "SERVER_NATIVE") throw new Error("Voxel Remesh native route is unavailable");
|
||||
if (!route) throw new Error("Voxel Remesh route is unavailable");
|
||||
await client.invokeFeatureRoute({ route, properties: { voxel_size: sculptRemeshVoxelSize } });
|
||||
} catch (error) {
|
||||
setSculptRemeshError(error instanceof Error ? error.message : String(error));
|
||||
const failure = error && typeof error === "object" ? error as { code?: unknown; message?: unknown } : null;
|
||||
const message = failure?.message ? String(failure.message) : error instanceof Error ? error.message : String(error);
|
||||
setSculptRemeshError(failure?.code ? `${String(failure.code)}: ${message}` : message);
|
||||
} finally {
|
||||
setSculptRemeshBusy(false);
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"unclassifiedCount": 0,
|
||||
"counts": {
|
||||
"BROWSER_EQUIVALENT": 434,
|
||||
"SERVER_NATIVE": 1151,
|
||||
"WEB_MAIN": 2226
|
||||
"SERVER_NATIVE": 1152,
|
||||
"WEB_MAIN": 2225
|
||||
},
|
||||
"behavioralEvidence": {
|
||||
"status": "PARTIAL",
|
||||
@@ -34171,10 +34171,11 @@
|
||||
"kind": "operator",
|
||||
"identifier": "OBJECT_OT_voxel_remesh",
|
||||
"family": "EDITOR",
|
||||
"route": "WEB_MAIN",
|
||||
"reason": "implemented Web operator route (F3 operator palette (generic desktop_operator channel)): object.voxel_remesh",
|
||||
"invokeVia": "desktop-operator",
|
||||
"route": "SERVER_NATIVE",
|
||||
"reason": "native handler defers to the server Blender operator route",
|
||||
"invokeVia": "server",
|
||||
"invokeId": "object.voxel_remesh",
|
||||
"httpRoute": "/api/server-operator-job",
|
||||
"evidenceStatus": "UNVERIFIED",
|
||||
"locations": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user