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:
authorJanne Karhu <jhkarh@gmail.com>2010-09-17 00:06:10 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-09-17 00:06:10 +0400
commite7a393d2e1a41d3332a1092a21bd8db1a5060cb6 (patch)
tree16433079ce7a259ee92e3f2ac6c82ec1ee70a186 /source/blender/blenloader
parent43d2d0c6ea6c74319de455f7ef81b42c597d1e5c (diff)
Tiny addition to boids functionality: pitch value
* Controls maximum rotation around side vector (as opposed to banking, which controls rotation around forward vector)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index d2b1b2d7010..25af3faa069 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -11107,6 +11107,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
}
+ {
+ ParticleSettings *part;
+ for(part = main->particle.first; part; part = part->id.next) {
+ if(part->boids)
+ part->boids->pitch = 1.0f;
+ }
+ }
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
/* WATCH IT 2!: Userdef struct init has to be in editors/interface/resources.c! */