Cleanup: rename ParticleSettings.child_nbr to child_percent
The old name was only kept to avoid breaking compatibility.
This commit is contained in:
@@ -1720,7 +1720,7 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel):
|
||||
col = layout.column()
|
||||
|
||||
sub = col.column(align=True)
|
||||
sub.prop(part, "child_nbr", text="Display Amount")
|
||||
sub.prop(part, "child_percent", text="Display Amount")
|
||||
sub.prop(part, "rendered_child_count", text="Render Amount")
|
||||
|
||||
col.separator()
|
||||
|
||||
@@ -3144,9 +3144,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
|
||||
/* children */
|
||||
|
||||
/* NOTE(@ideasman42): name is not following conventions: `nbr`.
|
||||
* Could be changed next major version. */
|
||||
prop = RNA_def_property(srna, "child_nbr", PROP_INT, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "child_percent", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(
|
||||
prop, NULL, "child_percent"); /* Optional if prop names are the same. */
|
||||
RNA_def_property_range(prop, 0, 100000);
|
||||
|
||||
Reference in New Issue
Block a user