[Bf-blender-cvs] [3fc07d1e748] master: Fix T83886: Particle instance modifier broken

Philipp Oeser noreply at git.blender.org
Thu Dec 17 16:02:46 CET 2020


Commit: 3fc07d1e7482a6472bf6e34616ebe7b616189274
Author: Philipp Oeser
Date:   Thu Dec 17 12:38:40 2020 +0100
Branches: master
https://developer.blender.org/rB3fc07d1e7482a6472bf6e34616ebe7b616189274

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

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

M	source/blender/makesdna/DNA_modifier_defaults.h

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

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 = "", \
   }



More information about the Bf-blender-cvs mailing list