FIRE-17341 / BUG-10747 do allow weights of zero, or some rigged mesh will display broken.

master
Nicky 2015-11-20 22:07:28 +01:00
parent bface34f0e
commit c3ad1c803e
1 changed files with 4 additions and 1 deletions

View File

@ -2600,7 +2600,10 @@ bool LLVolume::unpackVolumeFaces(std::istream& is, S32 size)
}
}
F32 wsum = wght.mV[VX] + wght.mV[VY] + wght.mV[VZ] + wght.mV[VW];
if (wsum <= 0.f)
// <FS:ND/> FIRE-17341 / BUG-10747 do allow weights of zero, or some rigged mesh will display broken.
// if (wsum <= 0.f)
if (wsum < 0.f)
{
wght = LLVector4(0.99999f,0.f,0.f,0.f);
}