diff --git a/panda/src/physics/physical.I b/panda/src/physics/physical.I index 1e1e8a49a1..8ac35b29fe 100644 --- a/panda/src/physics/physical.I +++ b/panda/src/physics/physical.I @@ -148,7 +148,7 @@ get_physical_node() const { //////////////////////////////////////////////////////////////////// INLINE NodePath Physical:: get_physical_node_path() const { - return _physical_node_path; + return NodePath(_physical_node); } //////////////////////////////////////////////////////////////////// diff --git a/panda/src/physics/physicalNode.I b/panda/src/physics/physicalNode.I index bc119fec7c..e6f5ebe611 100644 --- a/panda/src/physics/physicalNode.I +++ b/panda/src/physics/physicalNode.I @@ -49,5 +49,4 @@ INLINE void PhysicalNode:: add_physical(Physical *physical) { _physicals.push_back(physical); physical->_physical_node = this; - physical->_physical_node_path = NodePath(this); } diff --git a/panda/src/physics/physicalNode.cxx b/panda/src/physics/physicalNode.cxx index a61cae8fb9..50c1ae91d1 100644 --- a/panda/src/physics/physicalNode.cxx +++ b/panda/src/physics/physicalNode.cxx @@ -69,10 +69,8 @@ add_physicals_from(const PhysicalNode &other) { _physicals.insert(_physicals.end(), other._physicals.begin(), other._physicals.end()); - NodePath node_path(this); for (; last != _physicals.end(); last++) { (*last)->_physical_node = this; - (*last)->_physical_node_path = node_path; } } @@ -103,7 +101,6 @@ remove_physical(int index) { pvector< PT(Physical) >::iterator remove; remove = _physicals.begin() + index; (*remove)->_physical_node = (PhysicalNode *) NULL; - (*remove)->_physical_node_path = NodePath(); _physicals.erase(remove); }