Fix T41403: Grid Particles only partially generated.

Getting dominant axis (biggest dimension of bbox) was wrong, now using BLI code for that.
This commit is contained in:
Bastien Montagne 2014-08-11 20:23:39 +02:00
parent 8bed4e6040
commit bd623d9da3
Notes: blender-bot 2023-02-14 10:14:09 +01:00
Referenced by issue #41403, Grid Particles only partially generated
Referenced by issue #41403, Grid Particles only partially generated
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ static void distribute_grid(DerivedMesh *dm, ParticleSystem *psys)
sub_v3_v3v3(delta, max, min);
/* determine major axis */
axis = (delta[0]>=delta[1]) ? 0 : ((delta[1]>=delta[2]) ? 1 : 2);
axis = axis_dominant_v3_single(delta);
d = delta[axis]/(float)res;