diff options
author | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
commit | 117e22047c5752352342d64e3fb7ce00a4eb8113 (patch) | |
tree | e32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llcharacter/lljoint.cpp | |
parent | Second Life viewer sources 1.18.0.6 (diff) | |
download | meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2 meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz |
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/llcharacter/lljoint.cpp')
-rw-r--r-- | linden/indra/llcharacter/lljoint.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/linden/indra/llcharacter/lljoint.cpp b/linden/indra/llcharacter/lljoint.cpp index 6141cc0..07c34a8 100644 --- a/linden/indra/llcharacter/lljoint.cpp +++ b/linden/indra/llcharacter/lljoint.cpp | |||
@@ -485,39 +485,6 @@ void LLJoint::setSkinOffset( const LLVector3& offset ) | |||
485 | mSkinOffset = offset; | 485 | mSkinOffset = offset; |
486 | } | 486 | } |
487 | 487 | ||
488 | //----------------------------------------------------------------------------- | ||
489 | // setConstraintSilhouette() | ||
490 | //----------------------------------------------------------------------------- | ||
491 | void LLJoint::setConstraintSilhouette(LLDynamicArray<LLVector3>& silhouette) | ||
492 | { | ||
493 | S32 i; | ||
494 | |||
495 | mConstraintSilhouette.reset(); | ||
496 | for (i = 0; i < silhouette.count(); i++) | ||
497 | { | ||
498 | if (i % 2 == 1) | ||
499 | { | ||
500 | // skip normals | ||
501 | continue; | ||
502 | } | ||
503 | mConstraintSilhouette[i / 2] = silhouette[i]; | ||
504 | } | ||
505 | LLQuaternion inv_parent_rotation = LLQuaternion::DEFAULT; | ||
506 | |||
507 | if (getParent()) | ||
508 | { | ||
509 | inv_parent_rotation = ~getParent()->getWorldRotation(); | ||
510 | } | ||
511 | |||
512 | for (i = 0; i < mConstraintSilhouette.count(); i++) | ||
513 | { | ||
514 | LLVector3 vert = mConstraintSilhouette[i]; | ||
515 | |||
516 | vert -= getWorldPosition(); | ||
517 | vert.normVec(); | ||
518 | vert = vert * inv_parent_rotation; | ||
519 | } | ||
520 | } | ||
521 | 488 | ||
522 | //----------------------------------------------------------------------------- | 489 | //----------------------------------------------------------------------------- |
523 | // clampRotation() | 490 | // clampRotation() |