Blender Git Commit Log

Git Commits -> Revision 7398600

Revision 7398600 by Lukas Toenne (master)
November 6, 2013, 17:46 (GMT)
True grid snapping for nodes: This snaps nodes to the actual background grid instead of using incremental offset (which is not useful for nodes). Increment snapping has been disabled for nodes to avoid
confusion, grid snap is now the default as it seems to be the most wanted and easy to use mode.

Absolute grid snapping happens in a somewhat generic function 'applyGridAbsolute', which could also be used for objects and other transforms later on. It is conceptually similar to the 'project' snapping
option, in that it calculates a delta vector for each element on top of the overall transform, which places each node on the grid.

Node transform now uses the top-left node corner for TransformData->loc. The transform center is still the average of node centers, so that scaling and rotation works nicely.

snapGrid*** functions have been renamed to snapGridIncrement*** to distinguish better between incremental and absolute grid snapping.

Commit Details:

Full Hash: 73986000902c34020f581a6ef7395a9259b7f6c2
SVN Revision: 61170
Parent Commit: 480d431
Lines Changed: +132, -57

12 Modified Paths:

/release/scripts/startup/bl_ui/space_node.py (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+2, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -0) (Diff)
/source/blender/editors/include/ED_node.h (+3, -0) (Diff)
/source/blender/editors/space_node/node_draw.c (+7, -2) (Diff)
/source/blender/editors/transform/transform.c (+25, -24) (Diff)
/source/blender/editors/transform/transform.h (+3, -2) (Diff)
/source/blender/editors/transform/transform_constraints.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_conversions.c (+10, -18) (Diff)
/source/blender/editors/transform/transform_snap.c (+72, -8) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021