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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-12-17 14:38:40 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-12-17 18:00:18 +0300
commit3fc07d1e7482a6472bf6e34616ebe7b616189274 (patch)
tree93bc8d1140b40818216c93ff45ee811c7ae12599
parentc9f8f7915fd8f65d1c57cd971f8e8a31a662a912 (diff)
Fix T83886: Particle instance modifier broken
Caused by Caused by rB83980506957c. Since above commit, the modifier was created with wrong initial values [amount was 0.0 and offset was 1.0 -- instead of the other way around]. Since there is no way to fix existing files in a reasonable way I guess, all we can do here is to make sure that from now on, the defaults are correct. Maniphest Tasks: T83886 Differential Revision: https://developer.blender.org/D9881
-rw-r--r--source/blender/makesdna/DNA_modifier_defaults.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_modifier_defaults.h b/source/blender/makesdna/DNA_modifier_defaults.h
index e122d50cba8..fcb582ef837 100644
--- a/source/blender/makesdna/DNA_modifier_defaults.h
+++ b/source/blender/makesdna/DNA_modifier_defaults.h
@@ -503,8 +503,8 @@
.random_position = 0.0f, \
.rotation = 0.0f, \
.random_rotation = 0.0f, \
- .particle_offset = 1.0f, \
- .particle_amount = 0.0f, \
+ .particle_offset = 0.0f, \
+ .particle_amount = 1.0f, \
.index_layer_name = "", \
.value_layer_name = "", \
}