Blender Git Loki

Git Commits -> Revision 19da434

Revision 19da434 by Lukas Toenne (master)
August 24, 2021, 17:00 (GMT)
Nodes: Improvements to edge panning in the node editor.

- New operator property to toggle edge panning in the keymap:
This is disabled by default to avoid edge-panning in cases where it
gets distracting, such as adding a new node. Only the explicit
translate operator(s) (GKEY or drag) have this enabled now.

- Restore the initial view rect on edge pan cancel:
The initial view rect is now stored in the edge pan operator data.
When an operator with edge panning is cancelled it can now call the
`UI_view2d_edge_pan_cancel` function to restore the original View2D
rect.

- Less delay in node editor scrolling:
Delay is useful when scrolling through long lists, such as in the
outliner, but makes node scrolling feel sluggish and unresponsive.
The lower scroll speed here makes a faster response the better option.

- Zoom influence feature:
Somewhat slower scrolling in UI-space when zoomed out. With the 0.5
zoom influence factor nodes behave as if zoom factor is halved,
otherwise it gets too fast when zoomed out. Previously scrolling would
always be constant-speed in UI space, now it's half-way between UI
space and node (view) space.

Commit Details:

Full Hash: 19da434e9cc020a88d71d7e8a2e210fd79cab321
Parent Commit: 38bdde8
Lines Changed: +126, -43

12 Modified Paths:

/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+9, -9) (Diff)
/source/blender/editors/include/ED_node.h (+3, -2) (Diff)
/source/blender/editors/include/ED_transform.h (+1, -0) (Diff)
/source/blender/editors/include/UI_view2d.h (+15, -2) (Diff)
/source/blender/editors/interface/view2d_edge_pan.c (+48, -6) (Diff)
/source/blender/editors/space_node/node_geometry_attribute_search.cc (+1, -0) (Diff)
/source/blender/editors/space_node/node_relationships.cc (+12, -1) (Diff)
/source/blender/editors/transform/transform.c (+7, -0) (Diff)
/source/blender/editors/transform/transform.h (+2, -0) (Diff)
/source/blender/editors/transform/transform_convert_node.c (+16, -22) (Diff)
/source/blender/editors/transform/transform_generics.c (+5, -0) (Diff)
/source/blender/editors/transform/transform_ops.c (+7, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021