forked from blender/blender
Fix review comments #27
@ -109,7 +109,7 @@ def export_mtlx(material):
|
|||||||
if not doc:
|
if not doc:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
mtlx_file = mx_utils.get_temp_file(".mtlx", material.name)
|
mtlx_file = mx_utils.get_temp_file(".mtlx", str(material.as_pointer()))
|
||||||
|
|||||||
mx_utils.export_to_file(doc, mtlx_file, export_deps=True, copy_deps=False)
|
mx_utils.export_to_file(doc, mtlx_file, export_deps=True, copy_deps=False)
|
||||||
return str(mtlx_file)
|
return str(mtlx_file)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
Use hex format for mtlx name like:
f"mat_{material.as_pointer():016x}"