Cleanup: rename ParticleSettings.child_nbr to child_percent

The old name was only kept to avoid breaking compatibility.
This commit is contained in:
Campbell Barton
2023-06-04 19:51:29 +10:00
parent 32a5dad2b2
commit e82ca9b5ff
2 changed files with 2 additions and 4 deletions

View File

@@ -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()

View File

@@ -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);