diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-06-28 00:40:58 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-06-28 01:00:24 +0300 |
commit | 317dfc17358fd4ee0c7f19be62112d7037b6c6f2 (patch) | |
tree | c7c542d5164ae23d77cad96963c462ad08b8bfe1 /source/blender/editors/transform/transform_snap_object.cc | |
parent | 17a773cdcee9ea413d5be72a95fe1567743c269b (diff) |
Fix T96776: Assets dropped upside down when looking through camera
In perspective mode the snap point direction needs to be taken into
account to define which side of the face is being looked at.
If there is no face under the mouse cursor, there is no direction
adjustment and the element normal will be used.
Diffstat (limited to 'source/blender/editors/transform/transform_snap_object.cc')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.cc b/source/blender/editors/transform/transform_snap_object.cc index cf99d4b2ef3..bd3d29fac8a 100644 --- a/source/blender/editors/transform/transform_snap_object.cc +++ b/source/blender/editors/transform/transform_snap_object.cc @@ -3179,10 +3179,6 @@ static eSnapMode transform_snap_context_project_view3d_mixed_impl(SnapObjectCont if (r_index) { *r_index = index; } - if (r_face_nor && !has_hit) { - /* Fallback. */ - copy_v3_v3(r_face_nor, no); - } *dist_px = dist_px_tmp; } |