Blender Git Loki
Git Commits -> Revision 4f18ab1
Revision 4f18ab1 by Antonis Ryakiotakis (master) July 31, 2014, 15:02 (GMT) |
Fix T40958 align rotation + project individual elements not working This is another example of transform code crappiness. Projection snapping for objects is handled separately than regular snapping. Luckilly for us, we have the normal ready from the raycast result and a copy of code from ElementRotation function can do the necessary rotations for us. I have not enforced constraints here (arguably, maybe I should, and the already present projection snapping should do that too but seems it is commented out and the unorthodox order of operations here has me a bit scared. Leaving as TODO) |
Commit Details:
Full Hash: 4f18ab1b20d497da5ea4b613b9ab9e9bc57d3761
Parent Commit: bcbbed0
Lines Changed: +40, -0
1 Modified Path:
/source/blender/editors/transform/transform_snap.c (+40, -0) (Diff)