diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llviewerjointattachment.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerjointattachment.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewerjointattachment.cpp b/linden/indra/newview/llviewerjointattachment.cpp index 1cdd10f..4b58361 100644 --- a/linden/indra/newview/llviewerjointattachment.cpp +++ b/linden/indra/newview/llviewerjointattachment.cpp | |||
@@ -129,8 +129,9 @@ void LLViewerJointAttachment::setupDrawable(LLDrawable* drawablep) | |||
129 | } | 129 | } |
130 | } | 130 | } |
131 | 131 | ||
132 | for (LLViewerObject::child_list_t::iterator iter = mAttachedObject->mChildList.begin(); | 132 | LLViewerObject::const_child_list_t& child_list = mAttachedObject->getChildren(); |
133 | iter != mAttachedObject->mChildList.end(); ++iter) | 133 | for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); |
134 | iter != child_list.end(); iter++) | ||
134 | { | 135 | { |
135 | LLViewerObject* childp = *iter; | 136 | LLViewerObject* childp = *iter; |
136 | if (childp && childp->mDrawable.notNull()) | 137 | if (childp && childp->mDrawable.notNull()) |
@@ -208,8 +209,9 @@ BOOL LLViewerJointAttachment::addObject(LLViewerObject* object) | |||
208 | { | 209 | { |
209 | object->mText->setOnHUDAttachment(TRUE); | 210 | object->mText->setOnHUDAttachment(TRUE); |
210 | } | 211 | } |
211 | for (LLViewerObject::child_list_t::iterator iter = object->mChildList.begin(); | 212 | LLViewerObject::const_child_list_t& child_list = object->getChildren(); |
212 | iter != object->mChildList.end(); ++iter) | 213 | for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); |
214 | iter != child_list.end(); iter++) | ||
213 | { | 215 | { |
214 | LLViewerObject* childp = *iter; | 216 | LLViewerObject* childp = *iter; |
215 | if (childp && childp->mText.notNull()) | 217 | if (childp && childp->mText.notNull()) |
@@ -258,8 +260,9 @@ void LLViewerJointAttachment::removeObject(LLViewerObject *object) | |||
258 | } | 260 | } |
259 | } | 261 | } |
260 | 262 | ||
261 | for (LLViewerObject::child_list_t::iterator iter = object->mChildList.begin(); | 263 | LLViewerObject::const_child_list_t& child_list = object->getChildren(); |
262 | iter != object->mChildList.end(); ++iter) | 264 | for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); |
265 | iter != child_list.end(); iter++) | ||
263 | { | 266 | { |
264 | LLViewerObject* childp = *iter; | 267 | LLViewerObject* childp = *iter; |
265 | if (childp && childp->mDrawable.notNull()) | 268 | if (childp && childp->mDrawable.notNull()) |
@@ -282,8 +285,9 @@ void LLViewerJointAttachment::removeObject(LLViewerObject *object) | |||
282 | { | 285 | { |
283 | object->mText->setOnHUDAttachment(FALSE); | 286 | object->mText->setOnHUDAttachment(FALSE); |
284 | } | 287 | } |
285 | for (LLViewerObject::child_list_t::iterator iter = object->mChildList.begin(); | 288 | LLViewerObject::const_child_list_t& child_list = object->getChildren(); |
286 | iter != object->mChildList.end(); ++iter) | 289 | for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); |
290 | iter != child_list.end(); iter++) | ||
287 | { | 291 | { |
288 | LLViewerObject* childp = *iter; | 292 | LLViewerObject* childp = *iter; |
289 | if (childp->mText.notNull()) | 293 | if (childp->mText.notNull()) |
@@ -351,8 +355,9 @@ void LLViewerJointAttachment::clampObjectPosition() | |||
351 | void LLViewerJointAttachment::calcLOD() | 355 | void LLViewerJointAttachment::calcLOD() |
352 | { | 356 | { |
353 | F32 maxarea = mAttachedObject->getMaxScale() * mAttachedObject->getMidScale(); | 357 | F32 maxarea = mAttachedObject->getMaxScale() * mAttachedObject->getMidScale(); |
354 | for (LLViewerObject::child_list_t::iterator iter = mAttachedObject->mChildList.begin(); | 358 | LLViewerObject::const_child_list_t& child_list = mAttachedObject->getChildren(); |
355 | iter != mAttachedObject->mChildList.end(); ++iter) | 359 | for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin(); |
360 | iter != child_list.end(); iter++) | ||
356 | { | 361 | { |
357 | LLViewerObject* childp = *iter; | 362 | LLViewerObject* childp = *iter; |
358 | F32 area = childp->getMaxScale() * childp->getMidScale(); | 363 | F32 area = childp->getMaxScale() * childp->getMidScale(); |