diff options
Diffstat (limited to 'src/mechanics/mechanicssimulation.cpp')
-rw-r--r-- | src/mechanics/mechanicssimulation.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mechanics/mechanicssimulation.cpp b/src/mechanics/mechanicssimulation.cpp index c641074..15900d3 100644 --- a/src/mechanics/mechanicssimulation.cpp +++ b/src/mechanics/mechanicssimulation.cpp @@ -85,20 +85,20 @@ bool RigidBody::findOverallParent() const MechanicsItemList::iterator end = m_mechanicsItemList.end(); for ( MechanicsItemList::iterator it = m_mechanicsItemList.begin(); it != end; ++it ) { - MechanicsItem *tqparentItem = *it; - MechanicsItem *tqparentCandidate = dynamic_cast<MechanicsItem*>((*it)->tqparentItem()); + MechanicsItem *parentItem = *it; + MechanicsItem *parentCandidate = dynamic_cast<MechanicsItem*>((*it)->parentItem()); - while (tqparentCandidate) + while (parentCandidate) { - tqparentItem = tqparentCandidate; - tqparentCandidate = dynamic_cast<MechanicsItem*>(tqparentItem->tqparentItem()); + parentItem = parentCandidate; + parentCandidate = dynamic_cast<MechanicsItem*>(parentItem->parentItem()); } if ( !p_overallParent ) // Must be the first item to test - p_overallParent = tqparentItem; + p_overallParent = parentItem; - if ( p_overallParent != tqparentItem ) + if ( p_overallParent != parentItem ) { p_overallParent = 0l; return false; |