fix T46892: snap to closest point now works with Individual Origins
authorGermano Cavalcante <germano.costa@ig.com.br>
Fri, 3 Feb 2017 16:15:44 +0000 (13:15 -0300)
committerGermano Cavalcante <germano.costa@ig.com.br>
Fri, 3 Feb 2017 16:15:44 +0000 (13:15 -0300)
commit21f376780941f986e99db83793409c3222bca091
tree192f6b61ebcecc09bb22c21202d04256d3b01fd2
parent0b4a9caf51244fb85efea9d2fb41335f87cda762
fix T46892: snap to closest point now works with Individual Origins

The code looks for the closest element between its centers. In the case of islands, the center of each vertex is the center of the island.
The solution here is to skip the search for islands when the operation is translation
source/blender/editors/transform/transform_conversions.c