-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix value clips bug where incorrect time samples would
be added to the list of time samples for a clip. For example, given a clip times metadata value like [(0, 0), (4, 4), (5, 0), (6, 1), (7, 2), ...], we would expect an affected attribute to have time samples at times [0, 4, 5, 6, 7, ...], in addition to any other time samples authored in the clip itself. However, we were seeing extra samples at times [1, 2, 3...] as well. This bug was caused by the time samples from the clip times metadata being included in the set of authored time samples from the clip that were mapped back to stage times. This mapping process caused the extra samples to appear. The clip times metadata samples are now added on after the mapping. (Internal change: 2069882)
- Loading branch information
Showing
5 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
pxr/usd/usd/testenv/testUsdValueClips/timeSamples/clip.usda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#usda 1.0 | ||
|
||
def "Model" | ||
{ | ||
float size.timeSamples = { | ||
0: 0, | ||
2: 2.0, | ||
4: 4.0 | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
pxr/usd/usd/testenv/testUsdValueClips/timeSamples/root.usda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#usda 1.0 | ||
|
||
def "Ref" | ||
{ | ||
float size = 1.0 | ||
float size.timeSamples = { | ||
2: -2.0, | ||
4: -4.0, | ||
} | ||
} | ||
|
||
def "Model" ( | ||
references = </Ref> | ||
|
||
clips = { | ||
dictionary default = { | ||
asset[] assetPaths = [@./clip.usda@] | ||
string primPath = "/Model" | ||
double2[] active = [(0.0, 0)] | ||
double2[] times = [(0, 0), (4, 4), (5, 0), (6, 1), (7, 2), (8, 3), (9, 4)] | ||
} | ||
} | ||
) | ||
{ | ||
} |