comparison flaw in spotlight animation check. also, proper location of shadercache dir

This commit is contained in:
AzaezelX 2020-07-07 16:54:25 -05:00
parent 1173c4f153
commit 61db21aaaf
2 changed files with 1 additions and 1 deletions

View file

@ -137,7 +137,7 @@ void SpotLight::_conformLights()
Point3F objectScale(radius, mRange, radius);
Point3F objectBoxMin(-1, 0, -1);
if (mAnimationData && mAnimationData->mRot.keyLen > 0)
if (mAnimationData && mAnimationData->mRot.keyLen[0] > 0)
{
objectBoxMin.set(-1, -1, -1);
objectScale.set(mRange, mRange, mRange);