[Bf-blender-cvs] [75aa5ecbda6] master: Fix (unreported): Placement Tool not orienting the Object to normal
Germano Cavalcante
noreply at git.blender.org
Fri Apr 22 17:15:29 CEST 2022
Commit: 75aa5ecbda6f9fb5116fc582105991cc6c1a8f72
Author: Germano Cavalcante
Date: Fri Apr 22 12:15:03 2022 -0300
Branches: master
https://developer.blender.org/rB75aa5ecbda6f9fb5116fc582105991cc6c1a8f72
Fix (unreported): Placement Tool not orienting the Object to normal
Regression introduced in
{rB721335553ccb5ce4f7a374b958b7d65befa319df}.
`plane_omat` is only computed if `snap_state->draw_plane` is `true`.
===================================================================
M source/blender/editors/space_view3d/view3d_placement.c
===================================================================
diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c
index 05d4372723b..298de9b8730 100644
--- a/source/blender/editors/space_view3d/view3d_placement.c
+++ b/source/blender/editors/space_view3d/view3d_placement.c
@@ -737,6 +737,10 @@ static void view3d_interactive_add_begin(bContext *C, wmOperator *op, const wmEv
WM_event_drag_start_mval(event, ipd->region, mval);
int flag_orig = snap_state_new->flag;
snap_state_new->flag |= V3D_SNAPCURSOR_TOGGLE_ALWAYS_TRUE;
+
+ /* Be sure to also compute the #V3DSnapCursorData.plane_omat. */
+ snap_state->draw_plane = true;
+
ED_view3d_cursor_snap_data_get(snap_state_new, C, mval[0], mval[1]);
snap_state_new->flag = flag_orig;
}
More information about the Bf-blender-cvs
mailing list