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-07-29 11:05:27 +0300
committerJacques Lucke <jacques@blender.org>2020-07-29 11:05:27 +0300
commit4cad74e589f794f128c38d6211fe8ba6cef5f73e (patch)
tree9f18e93405d83fe300c65f861afd957cd34d2296 /source/blender/simulation
parent7a07683060ca49438eada9f8675c26c6c831ea20 (diff)
Particles: add Size attribute
Diffstat (limited to 'source/blender/simulation')
-rw-r--r--source/blender/simulation/intern/simulation_collect_influences.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/simulation/intern/simulation_collect_influences.cc b/source/blender/simulation/intern/simulation_collect_influences.cc
index 4d339f9e323..c947b28fd50 100644
--- a/source/blender/simulation/intern/simulation_collect_influences.cc
+++ b/source/blender/simulation/intern/simulation_collect_influences.cc
@@ -740,6 +740,7 @@ static void initialize_particle_attribute_builders(CollectContext &context)
/* TODO: Use uint32_t, but we don't have a corresponding custom property type. */
attributes_builder.add<int>("Hash", 0);
attributes_builder.add<float>("Birth Time", 0.0f);
+ attributes_builder.add<float>("Size", 0.03f);
context.influences.particle_attributes_builder.add_new(name, &attributes_builder);
}
}