@needle-tools/materialx 1.4.4-next.d2335d8 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -338,7 +338,7 @@ export async function createMaterialXMaterial(mtlx, materialNodeNameOrIndex, loa
|
|
|
338
338
|
|
|
339
339
|
} catch (error) {
|
|
340
340
|
// This is a wasm error (an int) that we need to resolve
|
|
341
|
-
console.error(`[MaterialX v${VERSION}] Error creating MaterialX material (${materialNodeNameOrIndex}):`, error, `\n→ This may be caused by invalid MaterialX XML data or a problem in the shader generation process. Please provide the
|
|
341
|
+
console.error(`[MaterialX v${VERSION}] Error creating MaterialX material (${materialNodeNameOrIndex}):`, typeof error === "number" ? `CODE ${error}` : error, `\n→ This may be caused by invalid MaterialX XML data or a problem in the shader generation process. Please provide the MaterialX code below when reporting an issue:\n`, mtlx);
|
|
342
342
|
// Return a fallback material with stored MaterialX data
|
|
343
343
|
const fallbackMaterial = new MeshStandardMaterial();
|
|
344
344
|
fallbackMaterial.color.set(0xff00ff);
|