-
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.
[Hd, UsdImaging] Replace the GetPrimPathForInstanceIndex API with Get…
…ScenePrimPath. GetPrimPathForInstanceIndex returned the instancer of a given rprim, or a null path if there was no instancer. Most callers of it were expecting it to return the USD prim path to the rprim, and so it was returning the wrong results. GetScenePrimPath returns the USD prim path of an rprim, as expected by calling code. It also does the work of turning prims-in-master into instance proxies, which some client code was trying to do itself. This also fixes up some long-running issues with delegateID-prefixed paths leaking into app code. To support these changes, the UsdImagingGLEngine picking API has been updated: - TestIntersection returns a pre-resolved (via GetScenePrimPath) USD prim path, rather than a hydra rprim path. - GetRprimPathFromPrimId, GetPrimPathFromPrimIdColor, GetPrimPathFromInstanceIndex, and DecodeIDRenderColor have been deleted. - A new function has been added: DecodeIntersection does the same path resolution as TestIntersection, but given a prim ID/instance ID from an ID render (needed by usdscenemetrics). - The "element ID" (unsupported) and "worldToLocal" transform (unused) have been deleted. (Internal change: 2051666)
- Loading branch information
Showing
20 changed files
with
318 additions
and
732 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
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
Oops, something went wrong.