forked from blender/blender
Create possibility to provide render settings via BlenderSceneDelegate #41
@ -34,7 +34,7 @@ void MaterialData::init()
|
||||
double_sided = (((Material *)id)->blend_flag & MA_BL_CULL_BACKFACE) == 0;
|
||||
|
||||
export_mtlx();
|
||||
if (!scene_delegate_->settings.mx_filename_key.IsEmpty()) {
|
||||
if (scene_delegate_->settings.mx_filename_key.IsEmpty()) {
|
||||
write_material_network_map();
|
||||
}
|
||||
}
|
||||
@ -75,7 +75,7 @@ void MaterialData::update()
|
||||
pxr::VtValue MaterialData::get_data(pxr::TfToken const &key) const
|
||||
{
|
||||
pxr::VtValue ret;
|
||||
if (key.GetString() == "MaterialXFilename") {
|
||||
if (key == scene_delegate_->settings.mx_filename_key) {
|
||||
if (!mtlx_path_.GetResolvedPath().empty()) {
|
||||
ret = mtlx_path_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user