A majority of vectorization done. Note that it's INCOMPLETE. LLVolumeFace and LLVertexBuffer haven't been updated, so it's very dirty(and buggy) at those transitions. Compiles on windoze.
This commit is contained in:
@@ -94,11 +94,13 @@ void LLVolumeImplFlexible::onParameterChanged(U16 param_type, LLNetworkData *dat
|
||||
}
|
||||
}
|
||||
|
||||
void LLVolumeImplFlexible::onShift(const LLVector3 &shift_vector)
|
||||
void LLVolumeImplFlexible::onShift(const LLVector4a &shift_vector)
|
||||
{
|
||||
//VECTORIZE THIS
|
||||
LLVector3 shift(shift_vector.getF32ptr());
|
||||
for (int section = 0; section < (1<<FLEXIBLE_OBJECT_MAX_SECTIONS)+1; ++section)
|
||||
{
|
||||
mSection[section].mPosition += shift_vector;
|
||||
mSection[section].mPosition += shift;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +196,6 @@ void LLVolumeImplFlexible::remapSections(LLFlexibleObjectSection *source, S32 so
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVolumeImplFlexible::setAttributesOfAllSections(LLVector3* inScale)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user