Skip to content

Commit

Permalink
Checking for visibility when syncing lights. (Autodesk#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpalee authored Aug 11, 2021
1 parent 7433a8c commit ae70e1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions render_delegate/light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ void HdArnoldGenericLight::Sync(HdSceneDelegate* sceneDelegate, HdRenderParam* r
AiNodeSetArray(_light, str::filters, AiArrayConvert(filters.size(), 1, AI_TYPE_NODE, filters.data()));
}
}
AiNodeSetDisabled(_light, !sceneDelegate->GetVisible(id));
}

if (*dirtyBits & HdLight::DirtyTransform) {
Expand Down

0 comments on commit ae70e1a

Please sign in to comment.