Browse Source

pgraph: Add missing `PandaNodePipelineReader::get_into_collide_mask()`

rdb 3 years ago
parent
commit
d0b7574384
2 changed files with 9 additions and 0 deletions
  1. 8 0
      panda/src/pgraph/pandaNode.I
  2. 1 0
      panda/src/pgraph/pandaNode.h

+ 8 - 0
panda/src/pgraph/pandaNode.I

@@ -1476,6 +1476,14 @@ has_tag(const std::string &key) const {
   return _cdata->_tag_data.find(key) >= 0;
 }
 
+/**
+ * Returns the "into" collide mask for this node.
+ */
+INLINE CollideMask PandaNodePipelineReader::
+get_into_collide_mask() const {
+  return _cdata->_into_collide_mask;
+}
+
 /**
  * Returns the union of all into_collide_mask() values set at CollisionNodes
  * at this level and below.

+ 1 - 0
panda/src/pgraph/pandaNode.h

@@ -880,6 +880,7 @@ public:
   INLINE std::string get_tag(const std::string &key) const;
   INLINE bool has_tag(const std::string &key) const;
 
+  INLINE CollideMask get_into_collide_mask() const;
   INLINE CollideMask get_net_collide_mask() const;
   INLINE const RenderAttrib *get_off_clip_planes() const;
   INLINE const BoundingVolume *get_bounds() const;