[Bf-blender-cvs] [33dba2c] fluid-mantaflow: small while loop changes

Sebastián Barschkis noreply at git.blender.org
Fri Feb 19 11:47:06 CET 2016


Commit: 33dba2c866d6bb59f162cacdc996d825be85dc42
Author: Sebastián Barschkis
Date:   Fri Feb 19 11:46:34 2016 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rB33dba2c866d6bb59f162cacdc996d825be85dc42

small while loop changes

===================================================================

M	intern/smoke/intern/scenarios/smoke.h

===================================================================

diff --git a/intern/smoke/intern/scenarios/smoke.h b/intern/smoke/intern/scenarios/smoke.h
index cf00e56..84ba188 100644
--- a/intern/smoke/intern/scenarios/smoke.h
+++ b/intern/smoke/intern/scenarios/smoke.h
@@ -319,8 +319,8 @@ if 'xl_wltnoise' in globals() : del xl_wltnoise\n";
 
 const string manta_step = "\n\
 def manta_step():\n\
-  next_frame = s.frame + 1\n\
-  while s.frame < next_frame:\n\
+  last_frame = s.frame\n\
+  while s.frame == last_frame:\n\
     print('Adapt timestep')\n\
     maxvel = vel.getMaxValue()\n\
     s.adaptTimestep(maxvel)\n\




More information about the Bf-blender-cvs mailing list