Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-04 05:27:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-04 09:38:11 +0300
commit22895d0f329308f15e998a74c94ea605fb0eeae3 (patch)
tree83025eca812ebf63ca52a9b854e87c3d975d6607 /source/blender/blenkernel
parentb34eded93076f651222b86f1e4e096754baa5ba9 (diff)
Cleanup: remove self-assignment
Use CLAMP_MAX to remove redundant comparison.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/fluid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c
index b93e6148b86..2dc7d3cc9e9 100644
--- a/source/blender/blenkernel/intern/fluid.c
+++ b/source/blender/blenkernel/intern/fluid.c
@@ -3652,7 +3652,7 @@ static int manta_step(
}
/* Total time must not exceed framecount times framelength. Correct tiny errors here. */
- CLAMP(fds->time_total, fds->time_total, time_total_old + fds->frame_length);
+ CLAMP_MAX(fds->time_total, time_total_old + fds->frame_length);
/* Compute shadow grid for gas simulations. Make sure to skip if bake job was canceled early. */
if (fds->type == FLUID_DOMAIN_TYPE_GAS && result) {