Fix arrange objectfunction to avoid last object in awkward positions.

fixes #3900
This commit is contained in:
tamasmeszaros 2020-11-20 09:35:04 +01:00
parent d855015e2f
commit 096d0c9860

View File

@ -277,9 +277,9 @@ protected:
if (result.empty())
score = 0.50 * dist + 0.50 * density;
else
score = R * 0.60 * dist +
(1.0 - R) * 0.20 * density +
0.20 * alignment_score;
// Let the density matter more when fewer objects remain
score = 0.50 * dist + (1.0 - R) * 0.20 * density +
0.30 * alignment_score;
break;
}