Add bl_use_materialx property #3

Merged
Bogdan Nagirniak merged 2 commits from add-bl_use_materialx into matx-export-material 2023-08-24 15:51:44 +02:00
Showing only changes of commit a459bdac51 - Show all commits

View File

@ -29,6 +29,8 @@ MaterialX::NodePtr MaterialXTexImageNode::convert()
Scene *scene = DEG_get_input_scene(depsgraph);
Main *bmain = DEG_get_bmain(depsgraph);
std::string image_path;
/* TODO: What if Blender built without Hydra? Also io::hydra::cache_or_get_image_file contain
* pretty general code, so could be moved from bf_usd project. */
#ifdef WITH_HYDRA
image_path = io::hydra::cache_or_get_image_file(bmain, scene, image, &tex->iuser);
#endif