Fix hair random rotation limited to 180 degrees
authorMai Lavelle <lavelle@gmail.com>
Mon, 13 Apr 2015 09:14:43 +0000 (14:14 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 13 Apr 2015 09:17:00 +0000 (14:17 +0500)
commit176ed5bfe280ef2151f93c0940d54498aaf00d71
treebc2a4dcdd093fb785f6a7b997c7c8691ec083cbb
parent6fbf05f326911d10e6227837f8b5de1d86f950b2
Fix hair random rotation limited to 180 degrees

The issue was caused by phase being limited from 0 to 1, which gave only
0..M_PI distribution which is not good enough for good randomness.

Now the phase is being randomized across full 0..2*M_PI range.
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/particle_system.c
source/blender/blenloader/intern/versioning_270.c