Quellcode durchsuchen

Merge pull request #2252 from pacomont/Allow_to_change_wind's_direction

It's almost imposible to change direction of wind. Reseting mCurrentT…
Areloch vor 7 Jahren
Ursprung
Commit
471bdcaefe
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      Engine/source/forest/forestWindEmitter.cpp

+ 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;
    }
 }