summaryrefslogtreecommitdiff
path: root/indra/newview/llmanipscale.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-08-12 17:29:50 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-08-12 17:29:50 +0000
commit80be4c1d2d73982ea2df6dd7ef3fc3465416c882 (patch)
tree9c5958572368be494b6302db8b03967a2c67b7ad /indra/newview/llmanipscale.cpp
parenta09f7d41efdb945755efaeb07f7418c1f6e2a78b (diff)
QAR-767 Combined maint-render-7 and maint-viewer-9 merge
merge release@93398 viewer-merge-1@94007 -> release dataserver-is-deprecated
Diffstat (limited to 'indra/newview/llmanipscale.cpp')
-rw-r--r--indra/newview/llmanipscale.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/llmanipscale.cpp b/indra/newview/llmanipscale.cpp
index 5859d4c75f..68e59ce9e0 100644
--- a/indra/newview/llmanipscale.cpp
+++ b/indra/newview/llmanipscale.cpp
@@ -1003,9 +1003,11 @@ void LLManipScale::dragCorner( S32 x, S32 y )
if (selectNode->mIndividualSelection)
{
// counter-translate child objects if we are moving the root as an individual
- for (U32 child_num = 0; child_num < cur->mChildList.size(); child_num++)
+ LLViewerObject::const_child_list_t& child_list = cur->getChildren();
+ for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin();
+ iter != child_list.end(); iter++)
{
- LLViewerObject* childp = cur->mChildList[child_num];
+ LLViewerObject* childp = *iter;
if (cur->isAttachment())
{
@@ -1301,9 +1303,11 @@ void LLManipScale::stretchFace( const LLVector3& drag_start_agent, const LLVecto
if (cur->isRootEdit() && selectNode->mIndividualSelection)
{
// counter-translate child objects if we are moving the root as an individual
- for (U32 child_num = 0; child_num < cur->mChildList.size(); child_num++)
+ LLViewerObject::const_child_list_t& child_list = cur->getChildren();
+ for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin();
+ iter != child_list.end(); iter++)
{
- LLViewerObject* childp = cur->mChildList[child_num];
+ LLViewerObject* childp = *iter;
if (!getUniform())
{
LLVector3 child_pos = childp->getPosition() - (delta_pos * ~cur->getRotationEdit());