Fix Merge > To Cursor

In master this is working fine, but in 2.8 ob->imat was identity matrix.
Committing this in master to simplify merging.
This commit is contained in:
Dalai Felinto
2018-04-30 21:34:13 +02:00
parent 188c4a22c9
commit 32c4158047

View File

@@ -2328,6 +2328,7 @@ static bool merge_target(
if (use_cursor) {
vco = ED_view3d_cursor3d_get(scene, v3d);
copy_v3_v3(co, vco);
invert_m4_m4(ob->imat, ob->obmat);
mul_m4_v3(ob->imat, co);
}
else {