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:
authorCampbell Barton <campbell@blender.org>2022-03-25 04:04:21 +0300
committerCampbell Barton <campbell@blender.org>2022-03-25 04:10:21 +0300
commit7d1d9e601503fb7e921c935524fec1469363c121 (patch)
treed19dcbbcf9ada051ff3ec629c397ddca23eb2b55 /source/blender/blenloader
parent4d46fac65d9946382c4be5b3842660e77468f00b (diff)
Cleanup: rename ParticleSettings.child_nbr => child_percent
child_nbr was used as a percentage as well as the final number of particles. Rename to avoid confusion.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_legacy.c b/source/blender/blenloader/intern/versioning_legacy.c
index 5b026c1cca0..16297149cc3 100644
--- a/source/blender/blenloader/intern/versioning_legacy.c
+++ b/source/blender/blenloader/intern/versioning_legacy.c
@@ -2064,8 +2064,8 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
}
for (part = bmain->particles.first; part; part = part->id.next) {
- if (part->ren_child_nbr == 0) {
- part->ren_child_nbr = part->child_nbr;
+ if (part->child_render_percent == 0) {
+ part->child_render_percent = part->child_percent;
}
}