Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Issue 6200062: Frame node upgrade and general node editor tweaks

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by lukas.toenne
Modified:
12 years, 7 months ago
Reviewers:
mont29, bf-codereview, brechtvl
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

A number of new features for the node editor in general and the Frame node in particular. For an detailed user-level description of new features see the following blogpost: http://code.blender.org/index.php/2012/05/node-editing-tweaks/ Known issues: * The custom ui handler for mouse cursor feedback on border resize overrides changes made by the generic ED_screen_set_subwinactive function (called from wm_event_do_handlers). This means that approaching an area border from within the node editor does not update the cursor to the "move" cursor correctly: http://www.pasteall.org/pic/31569 (It works when moving the other way, from 3D view to node editor here). Advice on proper solution would be appreciated. * The default selected/active theme colors for nodes (same as object theme colors) should be set to the "Text Highlight" theme color for consistency. Requires change to startup.blend, which blows up patch size too much for codereview app, so will have to be done before trunk merge.

Patch Set 1 #

Total comments: 16

Patch Set 2 : Aforementioned minor fixes #

Patch Set 3 : Proper mouse cursor fix by moving area border cursor setting after area handlers #

Patch Set 4 : Yet another way of setting the node resize cursor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1243 lines, -330 lines) Patch
release/scripts/presets/node_color/apricot.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
release/scripts/presets/node_color/durian.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
release/scripts/presets/node_color/mango.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
release/scripts/presets/node_color/orange.py View 1 chunk +5 lines, -0 lines 0 comments Download
release/scripts/presets/node_color/peach.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
release/scripts/startup/bl_operators/presets.py View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
release/scripts/startup/bl_ui/space_node.py View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
source/blender/blenkernel/BKE_node.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
source/blender/blenkernel/BKE_screen.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
source/blender/blenkernel/intern/node.c View 1 2 3 1 chunk +25 lines, -16 lines 0 comments Download
source/blender/blenloader/intern/readfile.c View 1 2 3 2 chunks +53 lines, -0 lines 0 comments Download
source/blender/editors/include/ED_node.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
source/blender/editors/interface/resources.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
source/blender/editors/screen/screen_edit.c View 1 2 3 5 chunks +16 lines, -12 lines 0 comments Download
source/blender/editors/space_node/drawnode.c View 1 2 3 12 chunks +177 lines, -27 lines 0 comments Download
source/blender/editors/space_node/node_buttons.c View 1 2 3 2 chunks +16 lines, -2 lines 0 comments Download
source/blender/editors/space_node/node_draw.c View 1 2 3 16 chunks +203 lines, -49 lines 0 comments Download
source/blender/editors/space_node/node_edit.c View 1 2 3 7 chunks +499 lines, -77 lines 0 comments Download
source/blender/editors/space_node/node_intern.h View 1 2 3 4 chunks +14 lines, -0 lines 0 comments Download
source/blender/editors/space_node/node_ops.c View 1 2 3 7 chunks +65 lines, -18 lines 0 comments Download
source/blender/editors/space_node/node_select.c View 1 2 3 10 chunks +9 lines, -112 lines 0 comments Download
source/blender/editors/space_node/space_node.c View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
source/blender/editors/transform/transform_conversions.c View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
source/blender/editors/transform/transform_ops.c View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
source/blender/makesdna/DNA_node_types.h View 1 2 3 5 chunks +15 lines, -1 line 0 comments Download
source/blender/makesrna/intern/rna_nodetree.c View 1 2 3 3 chunks +27 lines, -1 line 0 comments Download
source/blender/makesrna/intern/rna_userdef.c View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
source/blender/nodes/intern/node_common.c View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
source/blender/windowmanager/intern/wm_event_system.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
lukas.toenne
12 years, 7 months ago (2012-05-10 11:21:44 UTC) #1
mont29
Hi Lukas, All in all, patch looks good to me (and Frame nodes much nicer ...
12 years, 7 months ago (2012-05-16 20:09:20 UTC) #2
lukas.toenne
Last comment failed due to chunk mismatch with trunk: "Selected Node would be nicer :p" ...
12 years, 7 months ago (2012-05-19 07:18:00 UTC) #3
lukas.toenne
Aforementioned minor fixes
12 years, 7 months ago (2012-05-19 07:24:18 UTC) #4
lukas.toenne
Fix for mouse cursor problem
12 years, 7 months ago (2012-05-19 07:37:42 UTC) #5
lukas.toenne
http://codereview.appspot.com/6200062/diff/4004/source/blender/windowmanager/intern/wm_event_system.c File source/blender/windowmanager/intern/wm_event_system.c (right): http://codereview.appspot.com/6200062/diff/4004/source/blender/windowmanager/intern/wm_event_system.c#newcode2079 source/blender/windowmanager/intern/wm_event_system.c:2079: ED_screen_set_subwinactive(C, event); Moving this function behind the screen area ...
12 years, 7 months ago (2012-05-19 07:41:41 UTC) #6
lukas.toenne
On 2012/05/19 07:41:41, lukas.toenne wrote: > http://codereview.appspot.com/6200062/diff/4004/source/blender/windowmanager/intern/wm_event_system.c > File source/blender/windowmanager/intern/wm_event_system.c (right): > > http://codereview.appspot.com/6200062/diff/4004/source/blender/windowmanager/intern/wm_event_system.c#newcode2079 > ...
12 years, 7 months ago (2012-05-19 07:53:09 UTC) #7
lukas.toenne
Proper mouse cursor fix by moving area border cursor setting after area handlers
12 years, 7 months ago (2012-05-20 09:44:22 UTC) #8
lukas.toenne
Yet another way of setting the node resize cursor
12 years, 7 months ago (2012-05-22 07:51:28 UTC) #9
lukas.toenne
12 years, 7 months ago (2012-05-22 07:58:52 UTC) #10
Using a space area event handler is probably not a good way to update the mouse
cursor, so i came up with a different solution.

The are typeinfo now has an additional flag event_cursor, when set this causes
the cursor callback to be called on every mouse move, instead of just once when
entering the area. This avoids problems of overriding the default screen cursor
updates.

The problem with flickering cursor still persists. I've tracked it down to GHOST
level: using standard CURSOR_* types instead of custom BC_* cursors seems to
work nicely. Not sure what the reason is, it seems the custom bitmap cursors
shift their position slightly on mouse moves and intermediately set the standard
cursor or so ...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b