Fix editor regressions and add Blender scene and animated material import

This commit is contained in:
emil28092005
2026-09-12 00:53:20 +03:00
parent 1a0bf725fa
commit 6f497d1977
34 changed files with 1241 additions and 213 deletions
+3 -2
View File
@@ -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),
);