[Bf-blender-cvs] [7250dfeb2eb] functions: cleanup

Jacques Lucke noreply at git.blender.org
Sun Dec 22 14:26:04 CET 2019


Commit: 7250dfeb2ebe2e1d1c4985d74842468cefd9f9b1
Author: Jacques Lucke
Date:   Sun Dec 22 13:44:27 2019 +0100
Branches: functions
https://developer.blender.org/rB7250dfeb2ebe2e1d1c4985d74842468cefd9f9b1

cleanup

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

M	source/blender/simulations/bparticles/simulate.cpp

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

diff --git a/source/blender/simulations/bparticles/simulate.cpp b/source/blender/simulations/bparticles/simulate.cpp
index 3615a5267fe..d62a72c9132 100644
--- a/source/blender/simulations/bparticles/simulate.cpp
+++ b/source/blender/simulations/bparticles/simulate.cpp
@@ -351,12 +351,6 @@ BLI_NOINLINE static void simulate_blocks_for_time_span(
     TimeSpan time_span,
     SimulationState &simulation_state)
 {
-  if (blocks.size() == 0) {
-    return;
-  }
-
-  std::mutex mutex;
-
   tbb::parallel_for((uint)0, blocks.size(), [&](uint block_index) {
     AttributesBlock &block = *blocks[block_index];
 
@@ -385,10 +379,6 @@ BLI_NOINLINE static void simulate_blocks_from_birth_to_current_time(
     float end_time,
     SimulationState &simulation_state)
 {
-  if (blocks.size() == 0) {
-    return;
-  }
-
   tbb::parallel_for((uint)0, blocks.size(), [&](uint block_index) {
     AttributesBlock &block = *blocks[block_index];



More information about the Bf-blender-cvs mailing list