Blender Git Commit Log
Git Commits -> Revision 855b639
Revision 855b639 by Lukas Toenne (master) June 28, 2012, 08:47 (GMT) |
Basic snapping in node transform operator. Snapping actually was working already, but grid spacing was set to 1.0, which is basically pixel size in the node editor. Increased this to 1x grid step for fine snapping and 5x grid step for rough snapping. Grid drawing in node editor now draws 2 levels in slightly different shades to indicate the different snapping modes better. Node editor also supports the general use_snap tool setting to enable automatic snapping during transform. For now only the incremental snapping is supported, in future could be extended to enable alignment between nodes in a number of ways. |
Commit Details:
Full Hash: 855b6391ea3ee5eef819cfa73c72e016e461d74b
SVN Revision: 48362
Parent Commit: edf244c
Lines Changed: +63, -2
6 Modified Paths:
/release/scripts/startup/bl_ui/space_node.py (+5, -0) (Diff)
/source/blender/editors/include/UI_view2d.h (+1, -0) (Diff)
/source/blender/editors/interface/view2d.c (+48, -0) (Diff)
/source/blender/editors/space_node/node_draw.c (+3, -1) (Diff)
/source/blender/editors/transform/transform.c (+5, -0) (Diff)
/source/blender/editors/transform/transform_snap.c (+1, -1) (Diff)
/source/blender/editors/include/UI_view2d.h (+1, -0) (Diff)
/source/blender/editors/interface/view2d.c (+48, -0) (Diff)
/source/blender/editors/space_node/node_draw.c (+3, -1) (Diff)
/source/blender/editors/transform/transform.c (+5, -0) (Diff)
/source/blender/editors/transform/transform_snap.c (+1, -1) (Diff)