forked from blender/blender
BLEN-358: Error in console after closing Blender #22
@ -37,6 +37,7 @@ __all__ = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import traceback
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
@ -105,7 +106,12 @@ def export_mtlx(material):
|
|||||||
try:
|
try:
|
||||||
import materialx.utils as mx_utils
|
import materialx.utils as mx_utils
|
||||||
|
|
||||||
doc = mx_utils.export(material, None)
|
try:
|
||||||
|
doc = mx_utils.export(material, None)
|
||||||
|
except:
|
||||||
|
traceback.print_exc()
|
||||||
|
return ""
|
||||||
|
|
||||||
if not doc:
|
if not doc:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user