forked from blender/blender
BLEN-358: Error in console after closing Blender #22
@ -37,6 +37,7 @@ __all__ = (
|
||||
)
|
||||
|
||||
import os
|
||||
import traceback
|
||||
from pathlib import Path
|
||||
|
||||
import bpy
|
||||
@ -105,7 +106,12 @@ def export_mtlx(material):
|
||||
try:
|
||||
import materialx.utils as mx_utils
|
||||
|
||||
try:
|
||||
doc = mx_utils.export(material, None)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
DagerD marked this conversation as resolved
Outdated
|
||||
return ""
|
||||
|
||||
if not doc:
|
||||
return ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user
Move this to end of function with comment like "Important: code shouldn't raise any exception ...."