Blender Git Commit Log

Git Commits -> Revision 83093d6

Revision 83093d6 by Lukas Toenne (master)
June 29, 2012, 14:34 (GMT)
Extended modes for snapping in the node editor.
The transform operators in nodes will now use the unselected nodes to generate snapping points. Unlike object snapping, node snapping works for the x/y axes separately and snaps node borders to same borders of unselected nodes. The sensitive area for node borders extends over the whole view2D range, to enable simple alignment of nodes in both x and y direction.

For snap points in the node editor an additional enum value is stored to indicate the type of node border (left/right/top/bottom). This works as a constraint on possible node alignments: only same border types align with each other.

Commit Details:

Full Hash: 83093d677049f6ba085c34d1719906e2ee3cc3d1
SVN Revision: 48411
Parent Commit: 344ca17
Lines Changed: +334, -35

13 Modified Paths:

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