Merge branch 'master' of https://github.com/AdeonWriter/SingularityViewer
This commit is contained in:
@@ -1474,7 +1474,7 @@ void LLAgentCamera::updateCamera()
|
|||||||
LLVector3 torso_scale = torso_joint->getScale();
|
LLVector3 torso_scale = torso_joint->getScale();
|
||||||
LLVector3 chest_scale = chest_joint->getScale();
|
LLVector3 chest_scale = chest_joint->getScale();
|
||||||
|
|
||||||
// shorten avatar skeleton to avoid foot interpenetration
|
/*// shorten avatar skeleton to avoid foot interpenetration
|
||||||
if (!gAgentAvatarp->mInAir)
|
if (!gAgentAvatarp->mInAir)
|
||||||
{
|
{
|
||||||
LLVector3 chest_offset = LLVector3(0.f, 0.f, chest_joint->getPosition().mV[VZ]) * torso_joint->getWorldRotation();
|
LLVector3 chest_offset = LLVector3(0.f, 0.f, chest_joint->getPosition().mV[VZ]) * torso_joint->getWorldRotation();
|
||||||
@@ -1487,7 +1487,7 @@ void LLAgentCamera::updateCamera()
|
|||||||
scale_factor = llclamp(1.f - ((z_compensate * 0.5f) / neck_offset.mV[VZ]), 0.5f, 1.2f);
|
scale_factor = llclamp(1.f - ((z_compensate * 0.5f) / neck_offset.mV[VZ]), 0.5f, 1.2f);
|
||||||
chest_joint->setScale(LLVector3(1.f, 1.f, scale_factor));
|
chest_joint->setScale(LLVector3(1.f, 1.f, scale_factor));
|
||||||
diff.mV[VZ] = 0.f;
|
diff.mV[VZ] = 0.f;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
gAgentAvatarp->mPelvisp->setPosition(gAgentAvatarp->mPelvisp->getPosition() + diff);
|
gAgentAvatarp->mPelvisp->setPosition(gAgentAvatarp->mPelvisp->getPosition() + diff);
|
||||||
|
|
||||||
|
|||||||
@@ -4119,6 +4119,11 @@ LLViewerObject* LLViewerWindow::cursorIntersect(S32 mouse_x, S32 mouse_y, F32 de
|
|||||||
found = gPipeline.lineSegmentIntersectInWorld(mw_start, mw_end, pick_transparent,
|
found = gPipeline.lineSegmentIntersectInWorld(mw_start, mw_end, pick_transparent,
|
||||||
face_hit, intersection, uv, normal, tangent);
|
face_hit, intersection, uv, normal, tangent);
|
||||||
|
|
||||||
|
if (found && !pick_transparent)
|
||||||
|
{
|
||||||
|
gDebugRaycastIntersection = *intersection;
|
||||||
|
}
|
||||||
|
|
||||||
// [RLVa:KB] - Checked: 2010-01-02 (RLVa-1.1.0l) | Added: RLVa-1.1.0l
|
// [RLVa:KB] - Checked: 2010-01-02 (RLVa-1.1.0l) | Added: RLVa-1.1.0l
|
||||||
#ifdef RLV_EXTENSION_CMD_INTERACT
|
#ifdef RLV_EXTENSION_CMD_INTERACT
|
||||||
if ( (rlv_handler_t::isEnabled()) && (found) && (gRlvHandler.hasBehaviour(RLV_BHVR_INTERACT)) )
|
if ( (rlv_handler_t::isEnabled()) && (found) && (gRlvHandler.hasBehaviour(RLV_BHVR_INTERACT)) )
|
||||||
|
|||||||
Reference in New Issue
Block a user