summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawable.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-07-21 20:01:40 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-07-21 20:01:40 +0100
commit30880e062afa0671b166f161ae7c109bfd37d38f (patch)
tree892705253eb3f2aadd08ac90e8dcf53a16a34a65 /indra/newview/lldrawable.cpp
parentbbe5681d05d486d86f53d2adf3fa40b136c29df9 (diff)
SL-751, SL-691 - test lsl scripts update, better syncing between skeleton and drawable
Diffstat (limited to 'indra/newview/lldrawable.cpp')
-rw-r--r--indra/newview/lldrawable.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp
index 61ebf947dd..8001486b53 100644
--- a/indra/newview/lldrawable.cpp
+++ b/indra/newview/lldrawable.cpp
@@ -50,6 +50,7 @@
#include "llviewerobjectlist.h"
#include "llviewerwindow.h"
#include "llvocache.h"
+#include "llcontrolavatar.h"
const F32 MIN_INTERPOLATE_DISTANCE_SQUARED = 0.001f * 0.001f;
const F32 MAX_INTERPOLATE_DISTANCE_SQUARED = 10.f * 10.f;
@@ -697,6 +698,11 @@ F32 LLDrawable::updateXform(BOOL undamped)
mXform.setScale(LLVector3(1,1,1)); //no scale in drawable transforms (IT'S A RULE!)
mXform.updateMatrix();
+ if (mVObjp && mVObjp->isRootEdit() && mVObjp->getControlAvatar())
+ {
+ mVObjp->getControlAvatar()->matchVolumeTransform();
+ }
+
if (mSpatialBridge)
{
gPipeline.markMoved(mSpatialBridge, FALSE);