Blender Git Commit Log
Git Commits -> Revision 6cdc12d
Revision 6cdc12d by Lukas Toenne (master) April 24, 2013, 16:36 (GMT) |
Fix for #34739 and #35060, avoid ambiguity in compositor viewer nodes. The design changes coming with pynodes for the node editor allow editing multiple node groups or pinning. This is great for working on different node groups without switching between them all the time, but it causes a problem for viewer nodes: these nodes all write to the same Image data by design, causing access conflicts and in some cases memory corruption. This was not a problem before pynodes because the editor would only allow 1 edited node group at any time. With the new flexibility of node editors this restriction is gone. In order to avoid concurrent write access to the viewer image buffer and resolve the ambiguity this patch adds an "active viewer key" to the scene->nodetree (added in bNodeTree instead of Scene due to otherwise circular DNA includes). This key identifies a specific node tree/group instance, which enables the compositor to selectively enable only 1 viewer node. The active viewer key is switched when opening/closing node groups (push/pop on the snode->treepath stack) or when selecting a viewer node. This way only the "last edited" viewer will be active. Eventually it would be nicer if each viewer had its own buffer per node space so one could actually compare viewers without switching. But that is a major redesign of viewer nodes and images, not a quick fix for bcon4 ... |
Commit Details:
Full Hash: 6cdc12dc749bc1feeb44cb9f5740404605ae830e
SVN Revision: 56271
Parent Commit: 48b3dab
Lines Changed: +165, -136
15 Modified Paths:
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/compositor/intern/COM_compositor.cpp (+2, -1) (Diff)
/source/blender/compositor/intern/COM_CompositorContext.h (+1, -0) (Diff)
/source/blender/compositor/intern/COM_ExecutionSystem.cpp (+0, -10) (Diff)
/source/blender/compositor/intern/COM_ExecutionSystemHelper.cpp (+3, -3) (Diff)
/source/blender/editors/include/ED_node.h (+2, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+122, -114) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -1) (Diff)
/source/blender/editors/space_node/node_intern.h (+1, -1) (Diff)
/source/blender/editors/space_node/node_select.c (+4, -1) (Diff)
/source/blender/editors/space_node/space_node.c (+14, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+8, -1) (Diff)
/source/blender/render/intern/source/pipeline.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/compositor/intern/COM_compositor.cpp (+2, -1) (Diff)
/source/blender/compositor/intern/COM_CompositorContext.h (+1, -0) (Diff)
/source/blender/compositor/intern/COM_ExecutionSystem.cpp (+0, -10) (Diff)
/source/blender/compositor/intern/COM_ExecutionSystemHelper.cpp (+3, -3) (Diff)
/source/blender/editors/include/ED_node.h (+2, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+122, -114) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -1) (Diff)
/source/blender/editors/space_node/node_intern.h (+1, -1) (Diff)
/source/blender/editors/space_node/node_select.c (+4, -1) (Diff)
/source/blender/editors/space_node/space_node.c (+14, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+8, -1) (Diff)
/source/blender/render/intern/source/pipeline.c (+2, -2) (Diff)