Browse Source

pgraph: allow getting NodePath from CullTraverserData in Python

rdb 7 years ago
parent
commit
e4f0a9ce32
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/pgraph/cullTraverserData.h

+ 2 - 0
panda/src/pgraph/cullTraverserData.h

@@ -67,6 +67,8 @@ PUBLISHED:
   void apply_transform_and_state(CullTraverser *trav);
   void apply_transform_and_state(CullTraverser *trav);
   void apply_transform(const TransformState *node_transform);
   void apply_transform(const TransformState *node_transform);
 
 
+  MAKE_PROPERTY(node_path, get_node_path);
+
 private:
 private:
   // We store a chain leading all the way to the root, so that we can compose
   // We store a chain leading all the way to the root, so that we can compose
   // a NodePath.  We may be able to eliminate this requirement in the future.
   // a NodePath.  We may be able to eliminate this requirement in the future.