Fix #28416: setting fluid simulation start time to anything other than zero
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 29 Sep 2011 14:18:01 +0000 (14:18 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 29 Sep 2011 14:18:01 +0000 (14:18 +0000)
gave wrong results. Note how in this code it already incremented to the start
time and then incorrectly added it again. Patch by Chris Foster, thanks!

intern/elbeem/intern/ntl_world.cpp

index 38b8cc3518c82a89f81f1a3273f736fc07884f00..42ee94b2cf59d32db33af75106f9e0f09465982b 100644 (file)
@@ -216,7 +216,6 @@ void ntlWorld::finishWorldInit()
                        }
                        long stopTime = getTime();
 
-                       mSimulationTime += (*mpSims)[mFirstSim]->getStartTime();
                        debMsgStd("ntlWorld::ntlWorld",DM_MSG,"Time for start-sims:"<< getTimeString(stopTime-startTime) , 1);
 #ifndef NOGUI
                        guiResetSimulationTimeRange( mSimulationTime );