Assets: Snapping with visual feedback while dragging

The drag and drop feature of objects in 3D View has been modified to include:
- Snap the object being dragged.
- Visual feedback through a box and the placement tool grid.

Maniphest Tasks: T90198

Differential Revision: https://developer.blender.org/D12912
This commit is contained in:
Germano Cavalcante
2021-10-25 08:02:08 -03:00
committed by Germano Cavalcante
parent b17038db31
commit a84f1c02d2
23 changed files with 314 additions and 43 deletions

View File

@@ -80,6 +80,10 @@ void imm_draw_box_checker_2d(float x1, float y1, float x2, float y2);
void imm_draw_cube_fill_3d(uint pos, const float co[3], const float aspect[3]);
void imm_draw_cube_wire_3d(uint pos, const float co[3], const float aspect[3]);
void imm_draw_cube_corners_3d(uint pos,
const float co[3],
const float aspect[3],
const float factor);
void imm_draw_cylinder_fill_normal_3d(
uint pos, uint nor, float base, float top, float height, int slices, int stacks);