BLEN-326: Pass MaterialX to Hydra via hdMaterialNetwork #5

Merged
Bogdan Nagirniak merged 4 commits from George-Shakula/blender:mtlx-translation into hydra-render 2023-03-02 12:35:51 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit b19266c88f - Show all commits

View File

@ -343,7 +343,7 @@ VtValue BlenderSceneDelegate::GetMaterialResource(SdfPath const& id)
{
MaterialData *mat_data = material_data(id);
if (mat_data) {
return mat_data->material_resource(this);
return mat_data->material_resource();
}
return VtValue();
}

View File

@ -49,7 +49,7 @@ VtValue MaterialData::get_data(TfToken const &key)
return ret;
}
pxr::VtValue MaterialData::material_resource(pxr::HdSceneDelegate *scene_delegate)
pxr::VtValue MaterialData::material_resource()
{
#if defined(_MTLX_TRANSLATION_ENABLED)
std::string const &path = mtlx_path.GetResolvedPath();

View File

@ -25,7 +25,7 @@ class MaterialData: IdData {
void remove_prim() override;
void mark_prim_dirty(DirtyBits dirty_bits) override;
pxr::VtValue material_resource(pxr::HdSceneDelegate *scene_delegate);
pxr::VtValue material_resource();
George-Shakula marked this conversation as resolved
Review

scene_delegate is already available in MaterialData from IdData

`scene_delegate` is already available in MaterialData from IdData
void export_mtlx();
private: