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
|
||||||
@ -116,4 +117,9 @@ def export_mtlx(material):
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
print("ERROR: no MaterialX addon available")
|
print("ERROR: no MaterialX addon available")
|
||||||
|
|
||||||
|
except:
|
||||||
|
# This is a placeholder, this code will be moved to C part later
|
||||||
|
# This code shouldn't raise any exception due to breaking refcounts on RenderEngine
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
DagerD marked this conversation as resolved
|
|||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user
remove
return ""
from here, move comment underexcept: