Skip to content

Commit 54dc1d7

Browse files
Fix prims visibility during procedural updates (#1913)
1 parent b6c2296 commit 54dc1d7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [usd#1908](https://github.com/Autodesk/arnold-usd/issues/1908) - Read deform_keys independently of the primvar interpolation
1212
- [usd#1903](https://github.com/Autodesk/arnold-usd/issues/1903) - USD Writer should skip materials when the shader mask is disabled
1313
- [usd#1906](https://github.com/Autodesk/arnold-usd/issues/1906) - Fix light filters assignment order in the render delegate to make it consistent with the procedural.
14+
- [usd#1912](https://github.com/Autodesk/arnold-usd/issues/1912) - Procedural interactive updates don't consider primitives visibility
1415

1516
## [7.3.1.0] - 2024-03-27
1617

libs/translator/reader/reader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,8 +1273,9 @@ bool UsdArnoldReaderContext::GetPrimVisibility(const UsdPrim &prim, float frame)
12731273
return false;
12741274
UsdArnoldReader *reader = _threadContext->GetReader();
12751275
// Only compute the visibility when processing the dangling connections,
1276-
// otherwise we return true to avoid costly computation.
1277-
if (reader->GetReadStep() == UsdArnoldReader::READ_DANGLING_CONNECTIONS) {
1276+
// or when updating a specific primitive.
1277+
// Otherwise we return true to avoid costly computation.
1278+
if (reader->GetReadStep() == UsdArnoldReader::READ_DANGLING_CONNECTIONS || reader->IsUpdating()) {
12781279
return IsPrimVisible(prim, reader, frame);
12791280
}
12801281

0 commit comments

Comments
 (0)