Skip to content

Commit

Permalink
remove pcp walk
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 29, 2024
1 parent bbb9206 commit ff634bc
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions grill/views/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,28 +166,6 @@ def _add_node(pcp_node):

@cache
def _compute_composition(_prim):
# def walk_composition(node):
# yield node
# for child in node.children:
# yield from walk_composition(child)
#
# index = _prim.GetPrimIndex()
# root = index.rootNode
# affected_by = set() # {int} indices of nodes affecting this prim
# for node in walk_composition(root):
# arc_type = node.arcType
# target_idx, __ = _add_node(node)
# affected_by.add(target_idx)
# if origin:=node.parent:
# source_layer = origin.layerStack.identifier.rootLayer
# source_idx, source_layers = _add_node(origin)
# source_port = source_layers[source_layer]
# all_edges[source_idx, target_idx][str(source_port)][arc_type].update(
# {func.__name__: True for func in _USD_COMPOSITION_ARC_QUERY_METHODS}
# )
#
# return affected_by
# ---- #
query = Usd.PrimCompositionQuery(_prim)
affected_by = set() # {int} indices of nodes affecting this prim
for arc in query.GetCompositionArcs():
Expand Down

0 comments on commit ff634bc

Please sign in to comment.