Implement instancing for light objects #35

Merged
Bogdan Nagirniak merged 18 commits from BLEN-395 into hydra-render 2023-05-04 15:12:27 +02:00
Showing only changes of commit 563df4486e - Show all commits

View File

@ -153,7 +153,7 @@ ObjectData *InstancerData::object_data(pxr::SdfPath const &id) const
if (m_it != mesh_instances_.end()) { if (m_it != mesh_instances_.end()) {
return m_it->second.data.get(); return m_it->second.data.get();
} }
auto l_it = light_instances_.find(id); auto l_it = light_instances_.find(id.GetParentPath());
if (l_it != light_instances_.end()) { if (l_it != light_instances_.end()) {
return l_it->second.data.get(); return l_it->second.data.get();
} }