diff options
author | Jacek Antonelli | 2008-08-15 23:45:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:54 -0500 |
commit | d0b03a62fd799317d5da0bd56615739ce3b5b052 (patch) | |
tree | 8bc79bbbb52e18294f62810d9fa66ce136f90e2d /linden/indra/newview/llviewerobject.cpp | |
parent | Second Life viewer sources 1.20.8 (diff) | |
download | meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.zip meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.gz meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.bz2 meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.xz |
Second Life viewer sources 1.20.9
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerobject.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/linden/indra/newview/llviewerobject.cpp b/linden/indra/newview/llviewerobject.cpp index 54114e4..a989c9d 100644 --- a/linden/indra/newview/llviewerobject.cpp +++ b/linden/indra/newview/llviewerobject.cpp | |||
@@ -292,7 +292,7 @@ void LLViewerObject::markDead() | |||
292 | LLViewerObject *childp; | 292 | LLViewerObject *childp; |
293 | while (mChildList.size() > 0) | 293 | while (mChildList.size() > 0) |
294 | { | 294 | { |
295 | childp = mChildList[0]; | 295 | childp = mChildList.back(); |
296 | if (childp->getPCode() != LL_PCODE_LEGACY_AVATAR) | 296 | if (childp->getPCode() != LL_PCODE_LEGACY_AVATAR) |
297 | { | 297 | { |
298 | //llinfos << "Marking child " << childp->getLocalID() << " as dead." << llendl; | 298 | //llinfos << "Marking child " << childp->getLocalID() << " as dead." << llendl; |
@@ -307,7 +307,7 @@ void LLViewerObject::markDead() | |||
307 | ((LLVOAvatar*)childp)->getOffObject(); | 307 | ((LLVOAvatar*)childp)->getOffObject(); |
308 | childp->setParent(NULL); // LLViewerObject::markDead 2 | 308 | childp->setParent(NULL); // LLViewerObject::markDead 2 |
309 | } | 309 | } |
310 | mChildList.erase(mChildList.begin()); | 310 | mChildList.pop_back(); |
311 | } | 311 | } |
312 | 312 | ||
313 | if (mDrawable.notNull()) | 313 | if (mDrawable.notNull()) |
@@ -4217,13 +4217,15 @@ void LLViewerObject::updateDrawable(BOOL force_damped) | |||
4217 | { | 4217 | { |
4218 | BOOL damped_motion = | 4218 | BOOL damped_motion = |
4219 | !isChanged(SHIFTED) && // not shifted between regions this frame and... | 4219 | !isChanged(SHIFTED) && // not shifted between regions this frame and... |
4220 | (force_damped || // ...forced into damped motion by application logic or... | 4220 | ( force_damped || // ...forced into damped motion by application logic or... |
4221 | (!isSelected() && // ...not selected and... | 4221 | ( !isSelected() && // ...not selected and... |
4222 | (mDrawable->isRoot() || // ... is root or ... | 4222 | ( mDrawable->isRoot() || // ... is root or ... |
4223 | !((LLViewerObject*)getParent())->isSelected()) && // ... parent is not selected and ... | 4223 | (getParent() && !((LLViewerObject*)getParent())->isSelected())// ... parent is not selected and ... |
4224 | ) && | ||
4224 | getPCode() == LL_PCODE_VOLUME && // ...is a volume object and... | 4225 | getPCode() == LL_PCODE_VOLUME && // ...is a volume object and... |
4225 | getVelocity().isExactlyZero() && // ...is not moving physically and... | 4226 | getVelocity().isExactlyZero() && // ...is not moving physically and... |
4226 | mDrawable->getGeneration() != -1) // ...was not created this frame. | 4227 | mDrawable->getGeneration() != -1 // ...was not created this frame. |
4228 | ) | ||
4227 | ); | 4229 | ); |
4228 | gPipeline.markMoved(mDrawable, damped_motion); | 4230 | gPipeline.markMoved(mDrawable, damped_motion); |
4229 | } | 4231 | } |