Blender Git Commit Log

Git Commits -> Revision fcc42b3

April 22, 2021, 10:03 (GMT)
Basic snapping support for dropping objects

Uses the same snapping logic as the placement plane from the Add Object
tool, which means it matches the plane that we already draw as a
preview.

This is quite primitive at this point - you can't change options for the
snapping like the up-axis or the snapping target - but it already feels
quite great.
Another limitation is that it uses the origin of the dropped object to
place it, the bounding box should give better results in practice. This
is something we can add.

Commit Details:

Full Hash: fcc42b3d46b9954b464b95e84e387fb882029fe2
Parent Commit: 8cc294a
Lines Changed: +68, -28

3 Modified Paths:

/source/blender/editors/include/ED_view3d.h (+7, -0) (Diff)
/source/blender/editors/object/object_add.c (+4, -2) (Diff)
/source/blender/editors/space_view3d/view3d_placement.c (+57, -26) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021