diff --git a/scripts/modules/bpy_hydra.py b/scripts/modules/bpy_hydra.py index 6b2b0a3e5cd8..828c568d919e 100644 --- a/scripts/modules/bpy_hydra.py +++ b/scripts/modules/bpy_hydra.py @@ -37,6 +37,7 @@ __all__ = ( ) import os +import traceback from pathlib import Path import bpy @@ -116,4 +117,9 @@ def export_mtlx(material): except ImportError: 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() + return ""