Lindie viewer-dev catchup regarding rendering pipeline.
This commit is contained in:
@@ -368,7 +368,7 @@ void LLVolumeImplFlexible::doFlexibleUpdate()
|
||||
LLPath *path = &volume->getPath();
|
||||
if ((mSimulateRes == 0 || !mInitialized) && mVO->mDrawable->isVisible())
|
||||
{
|
||||
mVO->markForUpdate(TRUE);
|
||||
//mVO->markForUpdate(TRUE);
|
||||
if (!doIdleUpdate(gAgent, *LLWorld::getInstance(), 0.0))
|
||||
{
|
||||
return; // we did not get updated or initialized, proceeding without can be dangerous
|
||||
@@ -729,7 +729,11 @@ BOOL LLVolumeImplFlexible::doUpdateGeometry(LLDrawable *drawable)
|
||||
else if (!mUpdated || rotated)
|
||||
{
|
||||
volume->mDrawable->setState(LLDrawable::REBUILD_POSITION);
|
||||
volume->dirtyMesh();
|
||||
LLSpatialGroup* group = volume->mDrawable->getSpatialGroup();
|
||||
if (group)
|
||||
{
|
||||
group->dirtyMesh();
|
||||
}
|
||||
volume->genBBoxes(isVolumeGlobal());
|
||||
}
|
||||
|
||||
@@ -814,15 +818,17 @@ LLQuaternion LLVolumeImplFlexible::getEndRotation()
|
||||
}//------------------------------------------------------------------
|
||||
|
||||
|
||||
void LLVolumeImplFlexible::updateRelativeXform()
|
||||
void LLVolumeImplFlexible::updateRelativeXform(bool force_identity)
|
||||
{
|
||||
LLQuaternion delta_rot;
|
||||
LLVector3 delta_pos, delta_scale;
|
||||
LLVOVolume* vo = (LLVOVolume*) mVO;
|
||||
|
||||
bool use_identity = vo->mDrawable->isSpatialRoot() || force_identity;
|
||||
|
||||
//matrix from local space to parent relative/global space
|
||||
delta_rot = vo->mDrawable->isSpatialRoot() ? LLQuaternion() : vo->mDrawable->getRotation();
|
||||
delta_pos = vo->mDrawable->isSpatialRoot() ? LLVector3(0,0,0) : vo->mDrawable->getPosition();
|
||||
delta_rot = use_identity ? LLQuaternion() : vo->mDrawable->getRotation();
|
||||
delta_pos = use_identity ? LLVector3(0,0,0) : vo->mDrawable->getPosition();
|
||||
delta_scale = LLVector3(1,1,1);
|
||||
|
||||
// Vertex transform (4x4)
|
||||
|
||||
Reference in New Issue
Block a user