Fix review comments #27

Merged
Bogdan Nagirniak merged 14 commits from BLEN-392 into hydra-render 2023-04-21 15:02:44 +02:00
Showing only changes of commit 0a3ed69a0f - Show all commits

View File

@ -109,7 +109,7 @@ def export_mtlx(material):
if not doc:
return ""
mtlx_file = mx_utils.get_temp_file(".mtlx", material.name)
mtlx_file = mx_utils.get_temp_file(".mtlx", str(material.as_pointer()))

Use hex format for mtlx name like:
f"mat_{material.as_pointer():016x}"

Use hex format for mtlx name like: `f"mat_{material.as_pointer():016x}"`
mx_utils.export_to_file(doc, mtlx_file, export_deps=True, copy_deps=False)
return str(mtlx_file)