移除调试内容

This commit is contained in:
陈梓阳 2025-06-09 09:39:25 +08:00
parent 10d5595fb6
commit 942c7f1cc7
3 changed files with 20 additions and 15 deletions

View File

@ -1,7 +1,7 @@
{
"name": "material-editor",
"private": true,
"version": "1.0.18",
"version": "1.0.19",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -16,6 +16,7 @@ Database.prototype.AllocationObjectId = function (this: Database, object: CADObj
export function MaterialOut(material: PhysicalMaterialRecord): string
{
try {
let db = new Database();
db.WblockCloneObejcts(
[material],
@ -29,6 +30,10 @@ export function MaterialOut(material: PhysicalMaterialRecord): string
.replace(TextureTableRecord.name, "TextureTableRecord")
.replace(PhysicalMaterialRecord.name, "PhysicalMaterialRecord");
return json;
} catch (error) {
console.error("error in MaterialOut:", error, material);
throw error;
}
}
export function MaterialIn(fileData: Object[]): PhysicalMaterialRecord

View File

@ -139,7 +139,7 @@ const emits = defineEmits<{
(e: 'submit', data: MaterialRequest[]): void;
}>();
const debugMode = ref(true);
const debugMode = ref(false);
const _textureSrc = ref(props.textureSrcList);
const debugTextureSrc = ref("");
const textureAdjustment = ref<TextureAdjustment>({