Fix T76426: Mantaflow Liquid - Gravity not respecting Time Scale from domain.

Removed timescale from conversion factor - factors should stay constant even if timescale changes.
This commit is contained in:
Sebastián Barschkis 2020-05-07 17:15:15 +02:00
parent b09189500d
commit 6400f54b4c
Notes: blender-bot 2023-02-14 09:19:09 +01:00
Referenced by commit 18f833be29, Additional fix for T76426: Mantaflow Liquid - Gravity not respecting Time Scale from domain.
Referenced by issue #76426, Mantaflow Liquid - Gravity not respecting Time Scale from domain.
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ mantaMsg('1 Mantaflow cell is ' + str(ratioMetersToRes_s$ID$) + ' Blender length
ratioResToBLength_s$ID$ = float(res_s$ID$) / float(domainSize_s$ID$) # [cells / blength] (blength: cm, m, or km, ... )\n\
mantaMsg('1 Blender length unit is ' + str(ratioResToBLength_s$ID$) + ' Mantaflow cells long.')\n\
\n\
ratioBTimeToTimstep_s$ID$ = float(1) / float(0.1 * 25 * timeScale_s$ID$) # the time within 1 blender time unit, see also fluid.c\n\
ratioBTimeToTimstep_s$ID$ = float(1) / float(0.1 * 25) # the time within 1 blender time unit, see also fluid.c\n\
mantaMsg('1 Blender time unit is ' + str(ratioBTimeToTimstep_s$ID$) + ' Mantaflow time units long.')\n\
\n\
ratioFrameToFramelength_s$ID$ = float(1) / float(frameLength_s$ID$) # the time within 1 frame\n\