Skip to content

Commit

Permalink
properly test paths with variants for content browser
Browse files Browse the repository at this point in the history
Signed-off-by: Christian López Barrón <[email protected]>
  • Loading branch information
chrizzFTD committed Dec 7, 2024
1 parent a333e96 commit db88a66
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def test_content_browser(self):
# DEFAULT_SUFFIX = "usda"
#
# cook.UsdAsset = MiniAsset
stage = stage = Usd.Stage.Open(str(_test_bed))
stage = Usd.Stage.Open(str(_test_bed))
# stage = self.grill_world
# taxon = self.taxon_a
# parent, child = cook.create_many(taxon, ['A', 'B'])
Expand All @@ -525,10 +525,11 @@ def test_content_browser(self):
# stage.DefinePrim(child.GetPath().AppendChild("in_variant"))
# path_with_variant = child.GetPath().AppendVariantSelection(variant_set_name, variant_name)

path_with_variant = Sdf.Path("/Catalogue/Model/Elements/Apartment")
path_with_variant = Sdf.Path("/Origin{color=blue}Geom/Floor.primvars:displayColor")
spawned_path = Sdf.Path("/Catalogue/Model/Buildings/Multi_Story_Building/Windows/Apartment")
layers = stage.GetLayerStack()
args = stage.GetLayerStack(), None, stage.GetPathResolverContext(), (Sdf.Path("/"), spawned_path, path_with_variant)
apartments_layer = Sdf.Layer.FindOrOpen(str(_test_bed.parent / "Model-Elements-Apartment.1.usda"))
layers = stage.GetLayerStack() + [apartments_layer]
args = layers, None, stage.GetPathResolverContext(), (Sdf.Path("/"), spawned_path, path_with_variant)
anchor = layers[0]

def _log(*args):
Expand Down

0 comments on commit db88a66

Please sign in to comment.