BLEN-343: Create PreviewEngine #8

Merged
Bogdan Nagirniak merged 5 commits from BLEN-343 into hydra-render 2023-03-03 14:55:28 +01:00
Showing only changes of commit 1f072919b5 - Show all commits

View File

@ -27,6 +27,10 @@ void BlenderSceneDelegate::set_material(MeshData &mesh_data)
mesh_data.material_id = SdfPath::EmptyPath(); mesh_data.material_id = SdfPath::EmptyPath();
return; return;
} }
/**
* Haven't found any description about this flag. It disables some materials
* that don't exist for preview render
*/
if (!material->flag) { if (!material->flag) {
mesh_data.material_id = SdfPath::EmptyPath(); mesh_data.material_id = SdfPath::EmptyPath();
return; return;