Merge pull request #241 from Azaezel/alpha40_macCompile

comparison flaw in spotlight animation check.
This commit is contained in:
Brian Roberts 2020-07-08 12:27:28 -05:00 committed by GitHub
commit 55c95a6146
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);