try to fix linux build

This commit is contained in:
SamGondelman 2016-08-01 16:19:03 -07:00
parent ae0b9ea9a3
commit 6154aaddda

View file

@ -355,7 +355,7 @@ void ModelMeshPartPayload::initCache() {
float ModelMeshPartPayload::calcFadeRatio() const {
const float FADE_TIME = 0.5f;
float t = std::min(((float)(usecTimestampNow() - _fadeStartTime)) / ((float)(FADE_TIME * USECS_PER_SECOND)), 1.0f);
return -(cosf(M_PI_2*t) - 1.0f);
return -(cosf((float)M_PI_2 * t) - 1.0f);
}
void ModelMeshPartPayload::notifyLocationChanged() {