Skip to content

Commit

Permalink
When only timesamples indices exists for Indexed Primvar at 'default'…
Browse files Browse the repository at this point in the history
… time, use timesampled indices.
  • Loading branch information
syoyo committed May 7, 2024
1 parent 00905bf commit 6c0ce1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/usdGeom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ bool GeomPrimvar::flatten_with_indices(const double t, std::vector<T> *dest, con
// Get indices at specified time
std::vector<int32_t> indices;
if (value::TimeCode(t).is_default()) {
indices = _indices;
if (has_default_indices()) {
indices = _indices;
} else if (has_timesampled_indices()) {
_ts_indices.get(&indices, t, tinterp);
}
} else {
_ts_indices.get(&indices, t, tinterp);
}
Expand Down

0 comments on commit 6c0ce1b

Please sign in to comment.