return concrete NodePath objects instead of references

This commit is contained in:
David Rose 2004-06-15 01:09:55 +00:00
parent 029a19b435
commit a76f4015c6
2 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ get_into_node() const {
// that has been added to a CollisionTraverser via
// add_collider().
////////////////////////////////////////////////////////////////////
INLINE const NodePath &CollisionEntry::
INLINE NodePath CollisionEntry::
get_from_node_path() const {
return _from_node_path;
}
@ -120,7 +120,7 @@ get_from_node_path() const {
// resolve the particular instance of the node, if there
// is more than one.
////////////////////////////////////////////////////////////////////
INLINE const NodePath &CollisionEntry::
INLINE NodePath CollisionEntry::
get_into_node_path() const {
return _into_node_path;
}

View File

@ -60,8 +60,8 @@ PUBLISHED:
INLINE CollisionNode *get_from_node() const;
INLINE PandaNode *get_into_node() const;
INLINE const NodePath &get_from_node_path() const;
INLINE const NodePath &get_into_node_path() const;
INLINE NodePath get_from_node_path() const;
INLINE NodePath get_into_node_path() const;
INLINE bool get_respect_prev_transform() const;