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:
authorJacques Lucke <mail@jlucke.com>2019-12-22 15:44:27 +0300
committerJacques Lucke <mail@jlucke.com>2019-12-22 15:44:27 +0300
commit7250dfeb2ebe2e1d1c4985d74842468cefd9f9b1 (patch)
tree1250b9a8ef2cfc981bac09ace6164506b548eeb0 /source/blender/simulations
parentfeb938dfb8e3c8d15fc780fdc408e9154d91d5a9 (diff)
cleanup
Diffstat (limited to 'source/blender/simulations')
-rw-r--r--source/blender/simulations/bparticles/simulate.cpp10
1 files changed, 0 insertions, 10 deletions
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];