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`.
This commit is contained in:
parent
fe43c17083
commit
75aa5ecbda
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue