diff options
author | Merov Linden <merov@lindenlab.com> | 2013-03-06 18:45:40 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-03-06 18:45:40 -0800 |
commit | 179195241f5579ceeea682d7faf23dc2376338ec (patch) | |
tree | aef237271227a9faccc1414173c7efd6d4c5657a /indra/newview/lldrawable.cpp | |
parent | 4458986cf22a749d3387085a70ea07930519b8ab (diff) | |
parent | 236eefd9c8afbdd1f9e8b32cd8d356a6c0b6b2ac (diff) |
Pull merge from lindenlab/viewer-chui
Diffstat (limited to 'indra/newview/lldrawable.cpp')
-rw-r--r-- | indra/newview/lldrawable.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp index 59c2f15dd9..4b0d3b361d 100644 --- a/indra/newview/lldrawable.cpp +++ b/indra/newview/lldrawable.cpp @@ -577,6 +577,12 @@ F32 LLDrawable::updateXform(BOOL undamped) mVObjp->dirtySpatialGroup(); } } + else if (!isRoot() && + ((dist_vec_squared(old_pos, target_pos) > 0.f) + || (1.f - dot(old_rot, target_rot)) > 0.f)) + { //fix for BUG-840, MAINT-2275, MAINT-1742, MAINT-2247 + gPipeline.markRebuild(this, LLDrawable::REBUILD_POSITION, TRUE); + } else if (!getVOVolume() && !isAvatar()) { movePartition(); @@ -643,18 +649,9 @@ BOOL LLDrawable::updateMove() return FALSE; } - BOOL done; + makeActive(); - if (isState(MOVE_UNDAMPED)) - { - done = updateMoveUndamped(); - } - else - { - makeActive(); - done = updateMoveDamped(); - } - return done; + return isState(MOVE_UNDAMPED) ? updateMoveUndamped() : updateMoveDamped(); } BOOL LLDrawable::updateMoveUndamped() |