From: Markus R. <rol...@us...> - 2007-02-18 12:49:57
|
Update of /cvsroot/simspark/simspark/spark/oxygen/agentaspect In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28678 Modified Files: Tag: WIN32 jointeffector.h Log Message: - fix: use UpdateCached instead of ClearCachedData Index: jointeffector.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/agentaspect/Attic/jointeffector.h,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** jointeffector.h 18 Feb 2007 12:32:05 -0000 1.1.2.1 --- jointeffector.h 18 Feb 2007 12:49:53 -0000 1.1.2.2 *************** *** 40,56 **** } ! /** clears any cached data (e.g. the cached full path and ! forces the node to recalculate all values */ ! void ClearCachedData() ! { ! Effector::ClearCachedData(); ! mJoint.reset(); ! } ! ! protected: ! /** setup the reference to the HingeJoint parent node */ ! virtual void OnLink() { ! Effector::OnLink(); mJoint = make_shared(FindParentSupportingClass<_JOINT>()); --- 40,46 ---- } ! virtual void UpdateCached() { ! Effector::UpdateCached(); mJoint = make_shared(FindParentSupportingClass<_JOINT>()); *************** *** 63,66 **** --- 53,64 ---- } + protected: + /** setup the reference to the HingeJoint parent node */ + virtual void OnLink() + { + Effector::OnLink(); + UpdateCached(); + } + /** remove the reference to the HingeJoint parent node */ virtual void OnUnlink() |