Bugfix for [#17561] when i try to change the particle to hair I cant choose group...
[blender.git] / source / blender / blenkernel / intern / particle.c
index 15d6f71073f25272eca2359d2dacf2e84decedab..72b36b312ffd8571bfdc81a128c8ced072f4c933 100644 (file)
@@ -3866,14 +3866,9 @@ void psys_get_dupli_path_transform(Object *ob, ParticleSystem *psys, ParticleSys
                Mat4MulMat4(mat, obrotmat, qmat);
        }
        else {
                Mat4MulMat4(mat, obrotmat, qmat);
        }
        else {
-               Crossf(side, nor, vec);
-               Normalize(side);
-               Crossf(nor, vec, side);
-
+               Normalize(nor);
                Mat4One(mat);
                Mat4One(mat);
-               VECCOPY(mat[0], vec);
-               VECCOPY(mat[1], side);
-               VECCOPY(mat[2], nor);
+               VECCOPY(mat[2], nor); // mat[2] is normal/direction
        }
 
        *scale= len;
        }
 
        *scale= len;