From d0b7574384d0615b594d1f441836cdfd00c1954c Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 22 Oct 2022 15:49:40 +0200 Subject: [PATCH] pgraph: Add missing `PandaNodePipelineReader::get_into_collide_mask()` --- panda/src/pgraph/pandaNode.I | 8 ++++++++ panda/src/pgraph/pandaNode.h | 1 + 2 files changed, 9 insertions(+) diff --git a/panda/src/pgraph/pandaNode.I b/panda/src/pgraph/pandaNode.I index 8cbea5c871..00944599d0 100644 --- a/panda/src/pgraph/pandaNode.I +++ b/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. diff --git a/panda/src/pgraph/pandaNode.h b/panda/src/pgraph/pandaNode.h index cec5e220a2..325b5ea508 100644 --- a/panda/src/pgraph/pandaNode.h +++ b/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;