diff options
author | simon <none@none> | 2015-09-10 13:57:59 -0700 |
---|---|---|
committer | simon <none@none> | 2015-09-10 13:57:59 -0700 |
commit | 11a48c9313dca972a490b9b530a0abe75bc83a05 (patch) | |
tree | 3f82ba7cf40aeef2afb521c31539d264f387e3b7 /indra/newview/llselectmgr.cpp | |
parent | 0466ba380f11b30319f9dffd7e833f314829a12c (diff) | |
parent | 7048679ac8c6cea9238c1602d75ead4d983cdbc0 (diff) |
Merge
Diffstat (limited to 'indra/newview/llselectmgr.cpp')
-rwxr-xr-x | indra/newview/llselectmgr.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 55bcb3dc65..577c336ac7 100755 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -1235,7 +1235,15 @@ void LLSelectMgr::getGrid(LLVector3& origin, LLQuaternion &rotation, LLVector3 & } else if (mGridMode == GRID_MODE_REF_OBJECT && first_grid_object && first_grid_object->mDrawable.notNull()) { - mGridRotation = first_grid_object->getRenderRotation(); + LLSelectNode *node = mSelectedObjects->findNode(first_grid_object); + if (node) + { + mGridRotation = node->mSavedRotation; + } + else + { + mGridRotation = first_grid_object->getRenderRotation(); + } LLVector4a min_extents(F32_MAX); LLVector4a max_extents(-F32_MAX); |