[Bf-blender-cvs] [68608c5] master: Spiral rotation axis was not always fully normalized, avoid an assert.

Lukas Tönne noreply at git.blender.org
Tue Jan 20 09:53:46 CET 2015


Commit: 68608c542858c4225d7514b7295d62b73d0f5def
Author: Lukas Tönne
Date:   Wed Jan 14 11:48:51 2015 +0100
Branches: master
https://developer.blender.org/rB68608c542858c4225d7514b7295d62b73d0f5def

Spiral rotation axis was not always fully normalized, avoid an assert.

===================================================================

M	source/blender/blenkernel/intern/particle_child.c

===================================================================

diff --git a/source/blender/blenkernel/intern/particle_child.c b/source/blender/blenkernel/intern/particle_child.c
index 16e8869..e26a61f 100644
--- a/source/blender/blenkernel/intern/particle_child.c
+++ b/source/blender/blenkernel/intern/particle_child.c
@@ -153,6 +153,7 @@ static void do_kink_spiral_deform(ParticleKey *state, const float dir[3], const
 			theta = -theta;
 		
 		cross_v3_v3v3(spiral_axis, dir, kink);
+		normalize_v3(spiral_axis);
 		
 		mul_v3_v3fl(vec, kink, -radius);




More information about the Bf-blender-cvs mailing list