Blender Git Loki

Git Commits -> Revision 47bc66f

Revision 47bc66f by Julian Eisel (master)
August 1, 2015, 15:56 (GMT)
Note Editor: Auto-offset nodes on insertion

Implements "Auto-offset" (called "insert offset" in code) feature for Node Editor, developed during and after LSOC :)
Idea and sponsoring by Sebastian K�nig, blendFX, Mathias Eimann, Mikavaa, Knick Design

When you drop a node with at least one input and one output socket onto a an existing connection between two nodes, Auto-offset will, depending on the direction setting, automatically and animated move the left or right and all of its following nodes away to make room for the new node.
The direction for offsetting can be toggled while you are moving the node by pressing ?T?.

The auto-offset is enabled by default but can be disabled in the header of the node-editor. The offset margin can be changed in the editing section of the User Preferences.

Thanks a lot to the sponsors, and especially to Sebastian who helped *a lot* with this. That's how users can help developing Blender!

Commit Details:

Full Hash: 47bc66fc8dfe2b89e2b5be029c63f9043c8c2174
Parent Commit: 31bf82c
Lines Changed: +1356, -21

4 Added Paths:

/release/datafiles/blender_icons16/icon16_node_insert_off.dat (+0, -0) (View)
/release/datafiles/blender_icons16/icon16_node_insert_on.dat (+0, -0) (View)
/release/datafiles/blender_icons32/icon32_node_insert_off.dat (+0, -0) (View)
/release/datafiles/blender_icons32/icon32_node_insert_on.dat (+0, -0) (View)

17 Modified Paths:

/release/datafiles/blender_icons.svg (+886, -0) (Diff)
/release/scripts/startup/bl_operators/node.py (+1, -1) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+3, -0) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+2, -0) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/editors/include/UI_icons.h (+4, -2) (Diff)
/source/blender/editors/interface/resources.c (+4, -0) (Diff)
/source/blender/editors/space_node/node_intern.h (+2, -0) (Diff)
/source/blender/editors/space_node/node_ops.c (+13, -0) (Diff)
/source/blender/editors/space_node/node_relationships.c (+347, -8) (Diff)
/source/blender/editors/transform/transform.c (+43, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+19, -7) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+20, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021