Skip to content

Commit 6c0ce1b

Browse files
committed
When only timesamples indices exists for Indexed Primvar at 'default' time, use timesampled indices.
1 parent 00905bf commit 6c0ce1b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/usdGeom.cc

+5-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ bool GeomPrimvar::flatten_with_indices(const double t, std::vector<T> *dest, con
270270
// Get indices at specified time
271271
std::vector<int32_t> indices;
272272
if (value::TimeCode(t).is_default()) {
273-
indices = _indices;
273+
if (has_default_indices()) {
274+
indices = _indices;
275+
} else if (has_timesampled_indices()) {
276+
_ts_indices.get(&indices, t, tinterp);
277+
}
274278
} else {
275279
_ts_indices.get(&indices, t, tinterp);
276280
}

0 commit comments

Comments
 (0)