BLEN-335: Export environment light #1

Merged
Bogdan Nagirniak merged 13 commits from BLEN-335 into hydra-render 2023-02-17 14:46:46 +01:00
3 changed files with 7 additions and 1 deletions
Showing only changes of commit c811af052d - Show all commits

View File

@ -77,7 +77,7 @@ bool BlenderSceneDelegate::GetVisible(SdfPath const &id)
HdRenderIndex &index = GetRenderIndex();
if (index.GetSprim(HdPrimTypeTokens->domeLight, id)) {
return true;
return world_data.is_visible();
}
return obj_data->is_visible();

View File

@ -80,6 +80,11 @@ void WorldData::update_world()
set_as_world();
}
bool WorldData::is_visible()
{
return true;
}
void WorldData::set_as_world()
BogdanNagirniak marked this conversation as resolved
Review

move to constructor

move to constructor
{
data.clear();

View File

@ -32,6 +32,7 @@ public:
const T &get_data(pxr::TfToken const &key);
bool has_data(pxr::TfToken const &key);
void update_world();
BogdanNagirniak marked this conversation as resolved
Review

no need update_world() just recreate it in scene delegate

no need update_world() just recreate it in scene delegate
bool is_visible();
BL::Context *b_context;
View3DShading *shading;