[Bf-blender-cvs] [3fae33b22cb] master: Fix broken compilation after adding particles DNA defaults.

Bastien Montagne noreply at git.blender.org
Thu Oct 8 23:10:42 CEST 2020


Commit: 3fae33b22cb0d6afd5c8dcd5373e12d83f35090f
Author: Bastien Montagne
Date:   Thu Oct 8 23:07:52 2020 +0200
Branches: master
https://developer.blender.org/rB3fae33b22cb0d6afd5c8dcd5373e12d83f35090f

Fix broken compilation after adding particles DNA defaults.

Was failing because of a mismatch between RNA and DNA defaults on
`courant_target` property, removed RNA one (DNA came from initial value
defined in BKE's particle creation code, think it's best to keep that
one).

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

M	source/blender/makesrna/intern/rna_particle.c

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

diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 13b068c2be5..615faf6e2f3 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -2944,7 +2944,6 @@ static void rna_def_particle_settings(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "courant_target", PROP_FLOAT, PROP_NONE);
   RNA_def_property_range(prop, 0.0001, 10);
-  RNA_def_property_float_default(prop, 0.1);
   RNA_def_property_ui_text(
       prop,
       "Adaptive Subframe Threshold",



More information about the Bf-blender-cvs mailing list