minor fix

This commit is contained in:
Campbell Barton 2008-01-24 22:43:42 +00:00
parent 64109d8a0d
commit ad7a03ef84

@ -1921,7 +1921,7 @@ class tree:
mat_pitch = RotationMatrix( angle, 3, 'r', cross1) mat_pitch = RotationMatrix( angle, 3, 'r', cross1)
mat = mat * mat_pitch mat = mat * mat_pitch
if leaf_branch_roll_rand: if leaf_branch_roll_rand:
mat_roll = RotationMatrix( leaf_branch_roll_rand * ((next_random_num(rnd_seed)-0.5)*360), 3, 'r', leaf_no * mat_pitch) mat_roll = RotationMatrix( leaf_branch_roll_rand * ((next_random_num(rnd_seed)-0.5)*360), 3, 'r', leaf_no)
mat = mat * mat_roll mat = mat * mat_roll
mat = mat.resize4x4() * TranslationMatrix(leaf_co) mat = mat.resize4x4() * TranslationMatrix(leaf_co)