Bulk of server-baking impelmentation and a bit of cleanup.
This commit is contained in:
@@ -269,9 +269,6 @@ void LLVolumeImplFlexible::setAttributesOfAllSections(LLVector3* inScale)
|
||||
mSection[0].mVelocity.setVec(0,0,0);
|
||||
mSection[0].mAxisRotation.setQuat(begin_rot,0,0,1);
|
||||
|
||||
LLVector3 parentSectionPosition = mSection[0].mPosition;
|
||||
LLVector3 last_direction = mSection[0].mDirection;
|
||||
|
||||
remapSections(mSection, mInitializedRes, mSection, mSimulateRes);
|
||||
mInitializedRes = mSimulateRes;
|
||||
|
||||
@@ -432,6 +429,15 @@ void LLVolumeImplFlexible::doFlexibleUpdate()
|
||||
//the object is not visible
|
||||
return ;
|
||||
}
|
||||
|
||||
// stinson 11/12/2012: Need to check with davep on the following.
|
||||
// Skipping the flexible update if render res is negative. If we were to continue with a negative value,
|
||||
// the subsequent S32 num_render_sections = 1<<mRenderRes; code will specify a really large number of
|
||||
// render sections which will then create a length exception in the std::vector::resize() method.
|
||||
if (mRenderRes < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
S32 num_sections = 1 << mSimulateRes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user