移除调试内容
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "material-editor",
 | 
					  "name": "material-editor",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "version": "1.0.18",
 | 
					  "version": "1.0.19",
 | 
				
			||||||
  "type": "module",
 | 
					  "type": "module",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "dev": "vite",
 | 
					    "dev": "vite",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,6 +16,7 @@ Database.prototype.AllocationObjectId = function (this: Database, object: CADObj
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export function MaterialOut(material: PhysicalMaterialRecord): string
 | 
					export function MaterialOut(material: PhysicalMaterialRecord): string
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    try {
 | 
				
			||||||
        let db = new Database();
 | 
					        let db = new Database();
 | 
				
			||||||
        db.WblockCloneObejcts(
 | 
					        db.WblockCloneObejcts(
 | 
				
			||||||
            [material],
 | 
					            [material],
 | 
				
			||||||
@@ -29,6 +30,10 @@ export function MaterialOut(material: PhysicalMaterialRecord): string
 | 
				
			|||||||
            .replace(TextureTableRecord.name, "TextureTableRecord")
 | 
					            .replace(TextureTableRecord.name, "TextureTableRecord")
 | 
				
			||||||
            .replace(PhysicalMaterialRecord.name, "PhysicalMaterialRecord");
 | 
					            .replace(PhysicalMaterialRecord.name, "PhysicalMaterialRecord");
 | 
				
			||||||
        return json;
 | 
					        return json;
 | 
				
			||||||
 | 
					    } catch (error) {
 | 
				
			||||||
 | 
					        console.error("error in MaterialOut:", error, material);
 | 
				
			||||||
 | 
					        throw error;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function MaterialIn(fileData: Object[]): PhysicalMaterialRecord
 | 
					export function MaterialIn(fileData: Object[]): PhysicalMaterialRecord
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -139,7 +139,7 @@ const emits = defineEmits<{
 | 
				
			|||||||
    (e: 'submit', data: MaterialRequest[]): void;
 | 
					    (e: 'submit', data: MaterialRequest[]): void;
 | 
				
			||||||
}>();
 | 
					}>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const debugMode = ref(true);
 | 
					const debugMode = ref(false);
 | 
				
			||||||
const _textureSrc = ref(props.textureSrcList);
 | 
					const _textureSrc = ref(props.textureSrcList);
 | 
				
			||||||
const debugTextureSrc = ref("");
 | 
					const debugTextureSrc = ref("");
 | 
				
			||||||
const textureAdjustment = ref<TextureAdjustment>({
 | 
					const textureAdjustment = ref<TextureAdjustment>({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user