From d320aced735d4b63bceeab8b845148ee713a9f1d Mon Sep 17 00:00:00 2001 From: enn0x Date: Fri, 20 Feb 2015 01:29:16 +0100 Subject: [PATCH] Fixed const-correctness for BulletAllHitRayResult. --- panda/src/bullet/bulletAllHitsRayResult.cxx | 2 +- panda/src/bullet/bulletAllHitsRayResult.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/bullet/bulletAllHitsRayResult.cxx b/panda/src/bullet/bulletAllHitsRayResult.cxx index 953390820e..7d57feb767 100644 --- a/panda/src/bullet/bulletAllHitsRayResult.cxx +++ b/panda/src/bullet/bulletAllHitsRayResult.cxx @@ -156,7 +156,7 @@ get_hit_fraction() const { // Access: Published // Description: //////////////////////////////////////////////////////////////////// -PandaNode *BulletRayHit:: +const PandaNode *BulletRayHit:: get_node() const { return (_object) ? (PandaNode *)_object->getUserPointer() : NULL; diff --git a/panda/src/bullet/bulletAllHitsRayResult.h b/panda/src/bullet/bulletAllHitsRayResult.h index 6825e0ff68..26e04034af 100644 --- a/panda/src/bullet/bulletAllHitsRayResult.h +++ b/panda/src/bullet/bulletAllHitsRayResult.h @@ -33,7 +33,7 @@ struct EXPCL_PANDABULLET BulletRayHit { PUBLISHED: INLINE static BulletRayHit empty(); - PandaNode *get_node() const; + const PandaNode *get_node() const; LPoint3 get_hit_pos() const; LVector3 get_hit_normal() const; PN_stdfloat get_hit_fraction() const;