Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-10-26 16:07:49 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-10-26 16:07:58 +0300
commitb8b9023d8cd7e0be93f83533c37f50931a2a7c56 (patch)
treebb1d50a4f3fc808d3fe6d347cc97456fb1dde8b9 /source
parentaf26720b2131e5a0db96965b231f4dfa2d5c5a2d (diff)
Fix drop of dimensionless objects in 3DView
The matrix and location were not being calculated in this case.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index ccad1b8b552..8e61ff1765a 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -524,6 +524,7 @@ static void view3d_ob_drop_draw_activate(struct wmDropBox *drop, wmDrag *drag)
}
state = drop->draw_data = ED_view3d_cursor_snap_active();
+ state->draw_plane = true;
float dimensions[3] = {0.0f};
if (drag->type == WM_DRAG_ID) {
@@ -678,6 +679,7 @@ static void view3d_ob_drop_copy(wmDrag *drag, wmDropBox *drop)
RNA_boolean_set(drop->ptr, "duplicate", !is_imported_id);
V3DSnapCursorState *snap_state = ED_view3d_cursor_snap_state_get();
+ BLI_assert(snap_state->draw_box || snap_state->draw_plane);
Object *ob = (Object *)id;
float obmat_final[4][4];