Blender Git Loki

Git Commits -> Revision 5ff7ede

Revision 5ff7ede by Antonis Ryakiotakis (master)
May 16, 2012, 14:30 (GMT)
modal operation for bevel and inset:

This commit adds some first building blocks for the two operators to work modally based on mouse input. To make their function easier, two hotkeys are introduced, Ctrl+B for bevel and I for inset.

TODO:
After discussion with Campbell, we would like to add scale-style line indicators for the operators. This is already done for transform operators but a new interface for mesh operations may have to be written using pieces from that code since, strictly speaking bevel and inset are not exactly "transform" operators.

Also, a better input method for inset is needed and more options exposed. The method implemented right now uses mouse move for thickness and ctrl-mouse move for depth. These are calculated using the distance of the selection center in screen space and the mouse position. While that may work and prevents abrupt changes in values when switching from thickness tweak mode to depth tweak mode, it limits the magnitude of values that can be put into the tool especially in small or large scale.

Alternatives until a better method is written include:

* use relative offset (works but may give strange results)
* tweak manually after the operation.

Commit Details:

Full Hash: 5ff7ede1b5e50fd1c521dbf17760117c67be885e
SVN Revision: 46695
Parent Commit: 2e89e00
Lines Changed: +545, -47

7 Modified Paths:

/source/blender/editors/include/ED_mesh.h (+12, -0) (Diff)
/source/blender/editors/include/ED_transform.h (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+474, -41) (Diff)
/source/blender/editors/mesh/editmesh_utils.c (+46, -0) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+2, -0) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+3, -2) (Diff)
/source/blender/editors/transform/transform.c (+7, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021