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 <jacques@blender.org>2020-02-14 13:03:32 +0300
committerJacques Lucke <jacques@blender.org>2020-02-14 13:03:32 +0300
commit8363204347d6c0525aaed940f0a30435a7f49b49 (patch)
treed9cea7c2342002314140027bfe9232c11a7d9dec /source/blender/simulations
parent0e0f6a92161a890f71d01d45a204a9b26e4066f3 (diff)
use faster CPPType access
Diffstat (limited to 'source/blender/simulations')
-rw-r--r--source/blender/simulations/bparticles/c_wrapper.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/simulations/bparticles/c_wrapper.cpp b/source/blender/simulations/bparticles/c_wrapper.cpp
index 6e4062946dd..9600a1ac9a6 100644
--- a/source/blender/simulations/bparticles/c_wrapper.cpp
+++ b/source/blender/simulations/bparticles/c_wrapper.cpp
@@ -318,18 +318,18 @@ void BParticles_modifier_cache_state(BParticlesModifierData *bpmd,
strncpy(position_attribute.name, "Position", sizeof(position_attribute.name));
position_attribute.values = (float *)MEM_malloc_arrayN(
cached_type.particle_amount, sizeof(float3), __func__);
- FN::CPP_TYPE<float3>().copy_to_uninitialized_n(particles.attributes().get("Position").buffer(),
- position_attribute.values,
- cached_type.particle_amount);
+ FN::CPPType_float3.copy_to_uninitialized_n(particles.attributes().get("Position").buffer(),
+ position_attribute.values,
+ cached_type.particle_amount);
BParticlesAttributeCacheFloat &size_attribute = cached_type.attributes_float[1];
size_attribute.floats_per_particle = 1;
strncpy(size_attribute.name, "Size", sizeof(size_attribute.name));
size_attribute.values = (float *)MEM_malloc_arrayN(
cached_type.particle_amount, sizeof(float), __func__);
- FN::CPP_TYPE<float>().copy_to_uninitialized_n(particles.attributes().get("Size").buffer(),
- size_attribute.values,
- cached_type.particle_amount);
+ FN::CPPType_float.copy_to_uninitialized_n(particles.attributes().get("Size").buffer(),
+ size_attribute.values,
+ cached_type.particle_amount);
BParticlesAttributeCacheFloat &color_attribute = cached_type.attributes_float[2];
color_attribute.floats_per_particle = 4;