Fix for 45352/45ef3c3e352e, two choices, chance of 50/50, I picked the wrong one first try.

Nicky 2015-04-19 00:09:52 +02:00
parent 028b6f6b37
commit 66d50e06b2
1 changed files with 1 additions and 3 deletions

View File

@ -593,6 +593,7 @@ void LLVOCacheEntry::updateParentBoundingInfo(const LLVOCacheEntry* child)
update_min_max(newMin, newMax, parent_exts[1]);
// <FS:ND> Either the next to lines are useless, or there was an assignment missing.
// The lines are unused, using the clamped values causes big items to go poof.
// for(S32 i = 0; i < 4; i++)
// {
@ -600,9 +601,6 @@ void LLVOCacheEntry::updateParentBoundingInfo(const LLVOCacheEntry* child)
// llclamp(newMax[i], 0.f, 256.f);
// }
newMin.clamp( LLVector4a( 0.f ), LLVector4a( 256.f ) );
newMax.clamp( LLVector4a( 0.f ), LLVector4a( 256.f ) );
// </FS:ND>
setSpatialExtents(newMin, newMax);