[Bf-blender-cvs] [3e406633f73] functions: only compile when there are outputs

Jacques Lucke noreply at git.blender.org
Wed Jul 31 18:45:00 CEST 2019


Commit: 3e406633f73c9dda52cf782f8fb799a9188ac0ea
Author: Jacques Lucke
Date:   Wed Jul 31 16:49:12 2019 +0200
Branches: functions
https://developer.blender.org/rB3e406633f73c9dda52cf782f8fb799a9188ac0ea

only compile when there are outputs

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

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

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

diff --git a/source/blender/simulations/bparticles/particle_function.cpp b/source/blender/simulations/bparticles/particle_function.cpp
index 845c9ca8375..8a9bfddf136 100644
--- a/source/blender/simulations/bparticles/particle_function.cpp
+++ b/source/blender/simulations/bparticles/particle_function.cpp
@@ -34,7 +34,9 @@ ParticleFunction::ParticleFunction(SharedFunction fn_no_deps,
     }
   }
 
-  m_array_execution = FN::Functions::get_precompiled_array_execution(m_fn_with_deps);
+  if (m_fn_with_deps->output_amount() > 0) {
+    m_array_execution = FN::Functions::get_precompiled_array_execution(m_fn_with_deps);
+  }
 }
 
 ParticleFunction::~ParticleFunction()



More information about the Bf-blender-cvs mailing list