2
0
Эх сурвалжийг харах

Merge pull request #2252 from pacomont/Allow_to_change_wind's_direction

It's almost imposible to change direction of wind. Reseting mCurrentT…
Areloch 7 жил өмнө
parent
commit
6e60bf5fec

+ 1 - 0
Engine/source/forest/forestWindEmitter.cpp

@@ -179,6 +179,7 @@ void ForestWind::setStrengthAndDirection( F32 strength, const VectorF &direction
    {
       mStrength = strength;
       mDirection = direction;
+      mCurrentTarget.zero();
       mIsDirty = true;
    }
 }