Blender Git Loki

Git Commits -> Revision 8fae0c6

Revision 8fae0c6 by Janne Karhu (master)
October 16, 2011, 16:14 (GMT)
Particle dupliobject rotation changes:
There has been quite a bit of fuss about particle dupliobject rotation in 2.59, so here are some changes to make things work a bit more consistently and predictably in 2.60.

Much of the confusion has been about what the "Initial rotation" for particles actually means. Simply put it's just a vector that that the particles (and the dupliobjects) are aligned to and around which they can be rotated with the phase controls. I've now renamed these controls under a label "Rotation axis".

In 2.59 and previous versions the dupliobject's global x-axis was aligned to the particle rotation axis for non-hair particles. This meant that the object's own rotation (in addition to the particle rotation) could effect the dupliobjects' rotations. This old behavior can still be used with the "Rotation" option in the particle render panel when object/group is set as the visualization. This option is also activated automatically for old files to maintain backwards compatibility.

Now the default dupliobject rotations ignore the object's own rotation completely and align the object's tracking axis to the particle rotation axis. The tracking axis can be found under the Object tab -> Animation Hacks panel.

In 2.58 the way of calculating the rotation for hair didn't work as intended and enabled many non-functional combinations of options. For this reason I removed most of the rotation options for hair in 2.59. Now the options have been reimplemented better and the dupliobject's tracking axis is aligned to the hair direction by default (Rotation axis = Velocity / Hair). All the other axis options work too along with the phase controls.

Commit Details:

Full Hash: 8fae0c6d7e0d24bfa6c12e2121c5fa7a62440141
SVN Revision: 41060
Parent Commit: 6d5891e
Lines Changed: +99, -40

6 Modified Paths:

/release/scripts/startup/bl_ui/properties_particle.py (+23, -11) (Diff)
/source/blender/blenkernel/intern/anim.c (+11, -1) (Diff)
/source/blender/blenkernel/intern/particle.c (+41, -24) (Diff)
/source/blender/blenloader/intern/readfile.c (+14, -0) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+8, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021