From ff634bcea0f6ae62f5ca4f7b596bdaa02a42484b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 29 Dec 2024 16:06:31 +1100 Subject: [PATCH] remove pcp walk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian López Barrón --- grill/views/description.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/grill/views/description.py b/grill/views/description.py index 847e3dfa..c48dc4b0 100644 --- a/grill/views/description.py +++ b/grill/views/description.py @@ -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():