Fixed MCP with Kanban project
This commit is contained in:
parent
d4ef8f8b1b
commit
3248db74a6
6 changed files with 121 additions and 83 deletions
|
|
@ -76,10 +76,12 @@ Connect with transport "Streamable HTTP" to `http://localhost:3001/mcp`.
|
|||
|
||||
In graph projects, pass `nodeId` to `run_workflow`, `generate_image`, `edit_image`, or `generate_mesh` to display the results on that node — the first result becomes the node's asset, and additional results become new nodes stacked below it (wired to the same inputs). Without `nodeId` the generated assets are saved to the project but no node displays them.
|
||||
|
||||
`run_workflow` saves its output **under the source it was derived from, automatically** — you normally never set `parentAssetId`. It picks the workflow's image/mesh input matching the output type (whether that input was wired from the target node or passed in `inputs`): an image output becomes an edit of that source image, a mesh output a version of that source mesh (matching the graph UI). So a re-texture (image + mesh in → mesh out) becomes a version of the input mesh, and a background-removal (image in → image out) an edit of the input image, with nothing extra to pass. Set `parentAssetId` only to override the inferred parent; a parent whose type doesn't match the output type is ignored and a new root asset is created. (`edit_image` likewise saves an edit of its `imageSource`, and `run_mesh_tool` a version of its `assetId`.)
|
||||
`run_workflow` saves its output **under the source it was derived from, automatically** — you normally never set `parentAssetId`. The server matches each output to a resolved image/mesh input of the same type (whether that input was wired from the target node in a graph project or passed in `inputs` — so this works the same in **kanban** projects, which have no node wiring): an image output becomes an edit of that source image, a mesh output a version of that source mesh (matching the graph UI). So a re-texture (image + mesh in → mesh out) becomes a version of the input mesh, and a background-removal (image in → image out) an edit of the input image, with nothing extra to pass. Because the server knows the true output type (from the produced file), this holds even when the workflow's declared output type is missing or wrong. Set `parentAssetId` only to override the inferred parent; a parent whose type doesn't match the output type is ignored and a new root asset is created. (`edit_image` likewise saves an edit of its `imageSource`, and `run_mesh_tool` a version of its `assetId`.)
|
||||
|
||||
The target node's connected input assets also **auto-fill the workflow's image/mesh parameters**, matched by type (each connected asset used once). A node wired to an image and a mesh feeds a workflow that needs a Source Image + a mesh input without any manual mapping — so for a wired node you should **not** pass `inputs` for file (image/mesh/video) parameters and never need to guess their parameter ids. Set an `inputs` entry for a file parameter only to override a wired input or when nothing is connected; use `inputs` otherwise just for string/number/boolean parameters. Explicit `inputs`/`fileInputs` always take precedence over an auto-filled value.
|
||||
|
||||
When you *do* pass an image/mesh parameter in `inputs` (e.g. in a kanban project, which has no wiring), the value is simply the asset's **numeric id** — nothing else. The same plain id works for a root asset, an **edit**, or a **version**: a background-removed image is an edit, so pass that edit's own `id` (from the `children`/`edits` tree in `list_assets`). Do **not** pass a file path or filename, and do **not** pass a `{assetId, editId}` object — a bare id is always correct.
|
||||
|
||||
**Connect the input nodes _before_ you run.** `run_workflow`, `edit_image`, and `generate_mesh` read a node's connected input at the moment they execute — the input feeds the workflow/API and determines whether the result is saved as an edit/version. So the correct order is always: (1) `create_node` for the target, (2) `connect_nodes` to wire its input asset(s), then (3) run the workflow or API on that node. Running first and connecting afterwards is wrong: the run sees no input, so it can't use the source image/mesh and saves a stray new root asset instead of an edit/version — and the late connection does **not** re-run or re-parent it. If you ran in the wrong order, delete the stray result, connect the inputs, and run again.
|
||||
|
||||
### Parameter-heavy mesh tools
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ Typical flows:
|
|||
- IMPORTANT ordering: connect_nodes to wire a node's input asset(s) BEFORE you run_workflow / edit_image / generate_mesh on it. The run reads the node's connected input at execution time — it feeds the workflow/API and decides whether the result is saved as an edit of the connected image / a version of the connected mesh. Running first and connecting afterwards is wrong: the run sees no input, so it uses none and saves a stray new root asset, and the late connection does not re-run or re-parent it. If you got the order wrong, delete the stray result, connect the inputs, then run again.
|
||||
- ComfyUI: list_workflows for saved workflows and their parameters; import_workflow to add new ones (inspect_workflow first to discover inputs/outputs). run_workflow blocks with progress until the assets are ready. ComfyUI itself must be running (URL in get_settings).
|
||||
- ComfyUI image/mesh (file) parameters are filled AUTOMATICALLY from the target node's wired inputs (matched by type) — so for a node whose inputs are connected, do NOT pass inputs for file parameters (no need to guess their ids); just connect_nodes then run_workflow with nodeId. Only set a file-parameter input to override a wired input or when nothing is connected. Set inputs only for non-file parameters (string/number/boolean) you want to change.
|
||||
- When you DO pass an image/mesh (file) parameter in inputs (e.g. in a kanban project with no wiring), the value is just the asset's numeric id — nothing else. The SAME plain id works for a root asset, an edit, or a version (a background-removed image is an edit → pass that edit's own id, found in the children/edits tree from list_assets). Do NOT pass a file path/filename or a {assetId, editId} object; a bare id is correct.
|
||||
- Parent linkage is AUTOMATIC — do NOT manage parentAssetId yourself. run_workflow saves its output under the source it was derived from (the image/mesh input matching the output type, wired or passed in inputs): an image output becomes an edit of that image, a mesh output a version of that mesh. edit_image already saves an edit of its imageSource, and run_mesh_tool saves a version of its assetId. So a re-texture (image+mesh in, mesh out) versions the input mesh, and a background-removal (image in, image out) edits the input image, with no parentAssetId needed. Only pass parentAssetId to override the inferred parent.
|
||||
- Mesh processing: run_mesh_tool (auto_uv / auto_retopo / repair / auto_rig / optimize / convert_fbx) works on mesh assets; results save as asset versions.
|
||||
- Seeing results: use view_asset to LOOK at a generated image (returns the actual image; for meshes it returns the thumbnail when available). Use download_asset to save any asset file to a local folder. Assets also carry direct download URLs in every response.
|
||||
|
|
|
|||
|
|
@ -7,24 +7,6 @@ import { attachResultsToNode, resolveNodeTarget, resolveNodeInputAssets } from '
|
|||
|
||||
const FILE_PARAM_TYPES = ['image', 'mesh', 'video'];
|
||||
|
||||
// Pull a project asset id out of a file-parameter value (number, "asset:<id>",
|
||||
// numeric string, or {assetId|source|filePath}). Returns null for uploaded local
|
||||
// files and stored file paths — there's no project asset to parent to.
|
||||
function extractAssetIdFromInput(value) {
|
||||
if (value === null || value === undefined) return null;
|
||||
if (typeof value === 'number') return Number.isInteger(value) && value > 0 ? value : null;
|
||||
if (typeof value === 'string') {
|
||||
const raw = value.startsWith('asset:') ? value.slice(6) : value;
|
||||
const numeric = Number(raw);
|
||||
return Number.isInteger(numeric) && numeric > 0 ? numeric : null;
|
||||
}
|
||||
if (typeof value === 'object') {
|
||||
if (value.__fileField) return null;
|
||||
return extractAssetIdFromInput(value.assetId ?? value.source ?? value.filePath ?? null);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Strip the raw graph JSON from workflow records so list responses stay small.
|
||||
function summarizeWorkflow(workflow) {
|
||||
if (!workflow || typeof workflow !== 'object') return workflow;
|
||||
|
|
@ -128,7 +110,7 @@ export function registerWorkflowTools(server, { api, notifyMutation }) {
|
|||
inputSchema: {
|
||||
workflowId: z.number().int().describe('Saved workflow id (from list_workflows)'),
|
||||
projectId: z.number().int().optional().describe('Project to attach results to (required unless persistGeneratedAssets=false)'),
|
||||
inputs: z.record(z.string(), z.any()).default({}).describe('Parameter id -> value. Image/mesh parameters accept a project assetId (number) or stored filePath (string).'),
|
||||
inputs: z.record(z.string(), z.any()).default({}).describe('Parameter id -> value. For an image/mesh parameter pass the asset\'s numeric id (from list_assets / a generation result) — this is ALL you need. The SAME plain id works for a root asset, an edit, or a version (e.g. a background-removed image is an edit — pass that edit\'s own id). Do NOT pass a file path/filename, and do NOT pass a {assetId, editId} object — a bare number is correct. Non-file parameters take their literal value (string/number/boolean).'),
|
||||
fileInputs: z.record(z.string(), z.string()).optional().describe('Parameter id -> absolute local file path to upload for image/mesh/video parameters'),
|
||||
nodeId: z.number().int().optional().describe('Graph node to attach the results to (graph projects) — the correct way to fill a node; without it the generated assets are saved but no node displays them'),
|
||||
cardId: z.union([z.number().int(), z.string()]).optional().describe('Existing KANBAN card to attach the run to (kanban projects). For graph nodes use nodeId — a graph node id passed here is auto-routed to that node'),
|
||||
|
|
@ -185,26 +167,15 @@ export function registerWorkflowTools(server, { api, notifyMutation }) {
|
|||
}
|
||||
}
|
||||
|
||||
// Save the output under the source asset it was derived from, unless the caller
|
||||
// pinned a parent explicitly. Pick the file-parameter input (auto-filled from
|
||||
// wiring OR passed in `inputs`) whose type matches the produced output: an image
|
||||
// output becomes an edit of its source image, a mesh output a version of its
|
||||
// source mesh. Inferring from the reused input — not just node wiring — means a
|
||||
// caller that reuses a source assetId as an input doesn't have to remember
|
||||
// parentAssetId. Pass parentAssetId explicitly to override the inferred parent.
|
||||
let effectiveParentAssetId = parentAssetId;
|
||||
if (effectiveParentAssetId === undefined || effectiveParentAssetId === null) {
|
||||
const outputTypes = (workflowDef?.outputs || []).map(output => String(output?.valueType || 'image').toLowerCase());
|
||||
const primaryOutputType = outputTypes.includes('mesh')
|
||||
? 'mesh'
|
||||
: (outputTypes.includes('image') ? 'image' : (outputTypes[0] || null));
|
||||
const matchingParam = primaryOutputType
|
||||
? fileParams.find(parameter => parameter.type === primaryOutputType)
|
||||
: null;
|
||||
if (matchingParam) {
|
||||
effectiveParentAssetId = extractAssetIdFromInput(inputs[matchingParam.id] ?? autoInputs[matchingParam.id]);
|
||||
}
|
||||
}
|
||||
// Unless the caller pinned a parent, let the server save the output under the
|
||||
// source it was derived from: it matches each output to a resolved image/mesh
|
||||
// input of the same type (from wiring or `inputs`) — an image output becomes an
|
||||
// edit of its source image, a mesh output a version of its source mesh. This
|
||||
// means a caller that reuses a source asset as an input doesn't have to remember
|
||||
// parentAssetId (works for kanban too, where there is no node wiring). The server
|
||||
// knows the true output type, so this is robust even when the workflow's declared
|
||||
// output type is missing/wrong. Pass parentAssetId to override.
|
||||
const autoParentFromInputs = (parentAssetId === undefined || parentAssetId === null);
|
||||
|
||||
// Subscribe to the single-job progress stream BEFORE submitting so the
|
||||
// terminal event can't be missed (the endpoint also replays the latest
|
||||
|
|
@ -235,7 +206,11 @@ export function registerWorkflowTools(server, { api, notifyMutation }) {
|
|||
form.append('promptId', promptId);
|
||||
if (kanbanCardId !== undefined && kanbanCardId !== null) form.append('cardId', String(kanbanCardId));
|
||||
if (name) form.append('name', name);
|
||||
if (effectiveParentAssetId !== undefined && effectiveParentAssetId !== null) form.append('parentAssetId', String(effectiveParentAssetId));
|
||||
if (parentAssetId !== undefined && parentAssetId !== null) {
|
||||
form.append('parentAssetId', String(parentAssetId));
|
||||
} else if (autoParentFromInputs) {
|
||||
form.append('autoParentFromInputs', 'true');
|
||||
}
|
||||
if (persistProcessingCard === false) form.append('persistProcessingCard', 'false');
|
||||
if (persistGeneratedAssets === false) form.append('persistGeneratedAssets', 'false');
|
||||
|
||||
|
|
|
|||
53
server.js
53
server.js
|
|
@ -3557,6 +3557,14 @@ app.post('/api/comfyui/workflows/run', workflowExecutionUpload.any(), async (req
|
|||
const inputValues = JSON.parse(req.body.inputValues || '{}');
|
||||
const persistProcessingCard = String(req.body.persistProcessingCard || '').toLowerCase() !== 'false';
|
||||
const persistGeneratedAssets = String(req.body.persistGeneratedAssets || '').toLowerCase() !== 'false';
|
||||
// Default ON: when no explicit parentAssetId is given, save each output under
|
||||
// the resolved input asset of the same type — a mesh output becomes a version of
|
||||
// the input mesh, an image output an edit of the input image. This means MCP
|
||||
// callers get edit/version linkage without tracking parentAssetId (and it does
|
||||
// not depend on the MCP tool version, only on this backend). The app frontend
|
||||
// opts out explicitly (autoParentFromInputs=false), because it manages its own
|
||||
// edit/version saving and its generate flows must produce new root assets.
|
||||
const autoParentFromInputs = String(req.body.autoParentFromInputs ?? 'true').toLowerCase() !== 'false';
|
||||
|
||||
if (!workflowId) {
|
||||
return res.status(400).json({ error: 'workflowId is required' });
|
||||
|
|
@ -3583,6 +3591,9 @@ app.post('/api/comfyui/workflows/run', workflowExecutionUpload.any(), async (req
|
|||
const baseUrl = buildComfyUiBaseUrl(settings || DEFAULT_SETTINGS);
|
||||
const uploadedFiles = new Map((req.files || []).map(file => [file.fieldname, file]));
|
||||
const resolvedInputs = { ...inputValues };
|
||||
// The project assets used as image/mesh inputs, grouped by type, so an output
|
||||
// can be saved as an edit/version of the same-type source it was derived from.
|
||||
const resolvedInputAssetsByType = { image: [], mesh: [] };
|
||||
|
||||
for (const parameter of workflow.parameters || []) {
|
||||
const parameterValueType = normalizeComfyValueType(parameter.valueType, getDefaultComfyValueType(parameter));
|
||||
|
|
@ -3613,6 +3624,10 @@ app.post('/api/comfyui/workflows/run', workflowExecutionUpload.any(), async (req
|
|||
throw new Error(`A reference file is required for ${parameter.name}`);
|
||||
}
|
||||
|
||||
if (resolvedSource.asset.id) {
|
||||
resolvedInputAssetsByType[parameterValueType].push(resolvedSource.asset.id);
|
||||
}
|
||||
|
||||
const inputBuffer = await fs.readFile(toAbsoluteStoragePath(resolvedSource.inputFilePath));
|
||||
resolvedInputs[parameter.id] = await uploadComfyInputFile(baseUrl, {
|
||||
buffer: inputBuffer,
|
||||
|
|
@ -3719,11 +3734,23 @@ app.post('/api/comfyui/workflows/run', workflowExecutionUpload.any(), async (req
|
|||
const baseTimestamp = Date.now();
|
||||
const generatedAssets = [];
|
||||
|
||||
// When results are saved under a parent asset, they become an image edit or a
|
||||
// mesh version of it — but only when the parent's type matches the produced
|
||||
// output type (a mismatched parent falls back to a new root asset).
|
||||
const parentAsset = normalizedParentAssetId ? await getAssetRecordById(normalizedParentAssetId) : null;
|
||||
const parentAssetType = parentAsset ? String(parentAsset.assetTypeName || '').toLowerCase() : null;
|
||||
// Resolve which asset an output should be saved under, by output type, so it
|
||||
// becomes an image edit / mesh version instead of a new root. An explicit
|
||||
// parentAssetId wins when its type matches the output; otherwise, when
|
||||
// autoParentFromInputs is set, the output is saved under a resolved input asset
|
||||
// of the same type (the source it was derived from). No match → new root asset.
|
||||
const explicitParentType = normalizedParentAssetId
|
||||
? String((await getAssetRecordById(normalizedParentAssetId))?.assetTypeName || '').toLowerCase()
|
||||
: null;
|
||||
const resolveOutputParentId = (outputType) => {
|
||||
if (normalizedParentAssetId && explicitParentType === outputType) {
|
||||
return normalizedParentAssetId;
|
||||
}
|
||||
if (autoParentFromInputs) {
|
||||
return resolvedInputAssetsByType[outputType]?.[0] || null;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const workflowEditId = randomUUID();
|
||||
|
||||
for (const [index, workflowText] of workflowTexts.entries()) {
|
||||
|
|
@ -3801,16 +3828,16 @@ app.post('/api/comfyui/workflows/run', workflowExecutionUpload.any(), async (req
|
|||
? await renderMeshThumbnailViaService(downloadedFile.buffer, generatedAssetPayload.name)
|
||||
: null;
|
||||
|
||||
// When the output was produced from a connected input asset, store it as a
|
||||
// child of that asset instead of a new root: a mesh output becomes a version
|
||||
// of the connected mesh, an image output becomes an edit of the connected
|
||||
// image. A parent whose type doesn't match the output falls back to a root.
|
||||
const persistedAsset = (normalizedParentAssetId && parentAssetType === 'mesh' && inferredAssetType === 'mesh')
|
||||
? await createAssetVersion({ assetId: normalizedParentAssetId, ...generatedAssetPayload, thumbnailPath: meshThumbnailFilename, inheritThumbnail: false })
|
||||
: (normalizedParentAssetId && parentAssetType === 'image' && inferredAssetType === 'image')
|
||||
// Store the output under the source it was derived from when one applies: a
|
||||
// mesh output becomes a version of the source mesh, an image output an edit
|
||||
// of the source image. Otherwise it's a new root asset.
|
||||
const outputParentId = resolveOutputParentId(inferredAssetType);
|
||||
const persistedAsset = (outputParentId && inferredAssetType === 'mesh')
|
||||
? await createAssetVersion({ assetId: outputParentId, ...generatedAssetPayload, thumbnailPath: meshThumbnailFilename, inheritThumbnail: false })
|
||||
: (outputParentId && inferredAssetType === 'image')
|
||||
? {
|
||||
...(await createAssetEditRecord({
|
||||
assetId: normalizedParentAssetId,
|
||||
assetId: outputParentId,
|
||||
editId: workflowEditId,
|
||||
name: generatedAssetPayload.name,
|
||||
filePath: storedFilePath,
|
||||
|
|
|
|||
|
|
@ -1005,6 +1005,11 @@ export function ProjectProvider({ children }) {
|
|||
if (workflowData.persistGeneratedAssets === false) {
|
||||
formData.append('persistGeneratedAssets', 'false')
|
||||
}
|
||||
// The app manages its own edit/version saving (e.g. image edits via
|
||||
// /image-edits/comfy, mesh versions via an explicit parentAssetId), and its
|
||||
// generate flows must create new root assets — so opt out of the server's
|
||||
// input-based parent inference unless a caller explicitly asks for it.
|
||||
formData.append('autoParentFromInputs', workflowData.autoParentFromInputs === true ? 'true' : 'false')
|
||||
|
||||
Object.entries(workflowData.inputs || {}).forEach(([key, value]) => {
|
||||
if (typeof File !== 'undefined' && value instanceof File) {
|
||||
|
|
|
|||
86
storage.js
86
storage.js
|
|
@ -184,7 +184,7 @@ export const DEFAULT_SETTINGS = {
|
|||
port: '8200',
|
||||
// Desktop app: start this service automatically at launch (default off —
|
||||
// services otherwise start on demand or from Settings).
|
||||
autoStart: false
|
||||
autoStart: true
|
||||
},
|
||||
rigtools: {
|
||||
url: 'http://127.0.0.1',
|
||||
|
|
@ -1683,10 +1683,60 @@ async function resolveEditSourceByFilePath(db, editFilePath, typeName) {
|
|||
};
|
||||
}
|
||||
|
||||
// Resolve an image/mesh input source by asset id, accepting EITHER a root/card
|
||||
// asset OR a child edit/version. A child (an image edit or a mesh version) has no
|
||||
// Cards_Assets link of its own — only its root does — so getProjectAssetById(id)
|
||||
// returns null for it; here we accept it as long as its root belongs to the
|
||||
// project, using the child's own file as the input. This lets callers reference an
|
||||
// edit/version by its plain asset id, the same way they reference a root asset.
|
||||
async function resolveProjectAssetSourceById(projectId, assetId, typeName) {
|
||||
const expectedType = typeName.toLowerCase();
|
||||
|
||||
const direct = await getProjectAssetById(projectId, assetId);
|
||||
if (direct) {
|
||||
if (direct.type !== expectedType) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
asset: direct,
|
||||
inputFilePath: direct.filePath,
|
||||
inputFilename: direct.filename,
|
||||
inputName: direct.name,
|
||||
isEdit: false,
|
||||
editId: null
|
||||
};
|
||||
}
|
||||
|
||||
// Not a card-linked asset — try to resolve it as a child edit/version whose
|
||||
// root lives in this project.
|
||||
const record = await getAssetRecordById(assetId);
|
||||
if (!record || !record.parentId || String(record.assetTypeName || '').toLowerCase() !== expectedType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const root = await getRootAssetById(assetId);
|
||||
const rootInProject = root ? await getProjectAssetById(projectId, root.id) : null;
|
||||
if (!rootInProject) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const metadata = parseJson(record.metadata, {});
|
||||
return {
|
||||
asset: { id: record.id, type: expectedType, name: record.name, filePath: record.filePath },
|
||||
inputFilePath: record.filePath,
|
||||
inputFilename: toAssetUrlPath(record.filePath),
|
||||
inputName: record.name,
|
||||
isEdit: true,
|
||||
editId: metadata?.editId || null
|
||||
};
|
||||
}
|
||||
|
||||
export async function resolveProjectImageSource(projectId, sourceReference) {
|
||||
const parsedReference = typeof sourceReference === 'string'
|
||||
? sourceReference
|
||||
: (sourceReference?.source || sourceReference?.filePath || sourceReference?.assetId || '');
|
||||
: typeof sourceReference === 'number'
|
||||
? String(sourceReference)
|
||||
: (sourceReference?.source || sourceReference?.filePath || sourceReference?.assetId || '');
|
||||
|
||||
if (typeof parsedReference === 'string' && parsedReference.startsWith('edit:')) {
|
||||
const editFilePath = parsedReference.slice(5);
|
||||
|
|
@ -1741,25 +1791,15 @@ export async function resolveProjectImageSource(projectId, sourceReference) {
|
|||
return null;
|
||||
}
|
||||
|
||||
const asset = await getProjectAssetById(projectId, assetId);
|
||||
if (!asset || asset.type !== 'image') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
asset,
|
||||
inputFilePath: asset.filePath,
|
||||
inputFilename: asset.filename,
|
||||
inputName: asset.name,
|
||||
isEdit: false,
|
||||
editId: null
|
||||
};
|
||||
return await resolveProjectAssetSourceById(projectId, assetId, 'Image');
|
||||
}
|
||||
|
||||
export async function resolveProjectMeshSource(projectId, sourceReference) {
|
||||
const parsedReference = typeof sourceReference === 'string'
|
||||
? sourceReference
|
||||
: (sourceReference?.source || sourceReference?.filePath || sourceReference?.assetId || '');
|
||||
: typeof sourceReference === 'number'
|
||||
? String(sourceReference)
|
||||
: (sourceReference?.source || sourceReference?.filePath || sourceReference?.assetId || '');
|
||||
|
||||
if (typeof parsedReference === 'string' && parsedReference.startsWith('edit:')) {
|
||||
const editFilePath = parsedReference.slice(5);
|
||||
|
|
@ -1814,19 +1854,7 @@ export async function resolveProjectMeshSource(projectId, sourceReference) {
|
|||
return null;
|
||||
}
|
||||
|
||||
const asset = await getProjectAssetById(projectId, assetId);
|
||||
if (!asset || asset.type !== 'mesh') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
asset,
|
||||
inputFilePath: asset.filePath,
|
||||
inputFilename: asset.filename,
|
||||
inputName: asset.name,
|
||||
isEdit: false,
|
||||
editId: null
|
||||
};
|
||||
return await resolveProjectAssetSourceById(projectId, assetId, 'Mesh');
|
||||
}
|
||||
|
||||
export async function listProjects() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue