auto-git:
[change] src/app/App.tsx [change] src/app/app.css [change] src/assets/image-assets.ts [change] src/commands/create-custom-material-command.ts [change] src/commands/set-custom-material-texture-command.ts [change] src/commands/update-custom-material-command.ts [change] src/document/migrate-scene-document.ts [change] src/rendering/terrain-layer-material.ts [change] src/runtime-three/runtime-host.ts
This commit is contained in:
@@ -43,7 +43,9 @@ export function createCreateCustomMaterialCommand(
|
||||
const currentDocument = context.getDocument();
|
||||
|
||||
if (nextMaterial.kind !== "custom") {
|
||||
throw new Error("Only custom materials can be created by this command.");
|
||||
throw new Error(
|
||||
"Only custom materials can be created by this command."
|
||||
);
|
||||
}
|
||||
|
||||
if (currentDocument.materials[nextMaterial.id] !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user