Fix editor regressions and add Blender scene and animated material import
This commit is contained in:
+3
-2
@@ -473,13 +473,14 @@ export function createMcp(s: EngineService) {
|
||||
);
|
||||
tool(
|
||||
"asset_import_glb",
|
||||
"Import GLB or embedded glTF using base64 bytes OR a path inside the project folder. External URLs are not fetched.",
|
||||
"Import GLB, glTF with companion files, or a ZIP containing one model and its textures. Use base64 bytes OR a path inside the project folder. External files resolve only within that folder; network URLs are not fetched.",
|
||||
{
|
||||
...revision,
|
||||
name: z.string().regex(/\.(glb|gltf)$/i),
|
||||
name: z.string().regex(/\.(glb|gltf|zip)$/i),
|
||||
base64: z.string().max(36_000_000).optional(),
|
||||
path: z.string().optional(),
|
||||
instantiate: z.boolean().default(true),
|
||||
asScene: z.boolean().default(false).describe("Replace the project with the complete imported scene, using its active/first camera and lights. Undoable."),
|
||||
},
|
||||
(a) => s.importModel(a),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user