[Bf-blender-cvs] [0645752ab73] functions: cleanup
Jacques Lucke
noreply at git.blender.org
Thu Jul 18 18:19:52 CEST 2019
Commit: 0645752ab73094cea0dbc73567627ee5501961b1
Author: Jacques Lucke
Date: Thu Jul 18 16:59:08 2019 +0200
Branches: functions
https://developer.blender.org/rB0645752ab73094cea0dbc73567627ee5501961b1
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 5845e7c9518..a54203f8bdd 100644
--- a/source/blender/simulations/bparticles/simulate.cpp
+++ b/source/blender/simulations/bparticles/simulate.cpp
@@ -287,9 +287,7 @@ BLI_NOINLINE static void apply_remaining_offsets(BlockStepData &step_data, Array
auto handlers = step_data.particle_type.offset_handlers();
if (handlers.size() > 0) {
ArrayAllocator::Array<float> time_factors(step_data.array_allocator);
- for (uint pindex : pindices) {
- time_factors[pindex] = 1.0f;
- }
+ ArrayRef<float>(time_factors).fill_indices(pindices, 1.0f);
OffsetHandlerInterface interface(step_data, pindices, time_factors);
for (OffsetHandler *handler : handlers) {
More information about the Bf-blender-cvs
mailing list