Go to file
Lukas Toenne 6cdc12dc74 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 ...
2013-04-24 16:36:50 +00:00
build_files Strip unneeded folders and files from numpy 2013-04-23 15:51:41 +00:00
doc Py API doc generation: add bpy.app.translations module, and fix a few errors found while building the doc. Thanks to Campbell for review. 2013-04-19 13:00:21 +00:00
extern Update Ceres to current upstream version 2013-04-22 09:25:37 +00:00
intern Attempt to fix #35041 and #34725: cycles crash with OSL and both a 3D viewport 2013-04-22 14:27:12 +00:00
release use more rna-constant name for bevel clamping. 2013-04-24 14:14:54 +00:00
source Fix for #34739 and #35060, avoid ambiguity in compositor viewer nodes. 2013-04-24 16:36:50 +00:00
CMakeLists.txt Don't use auto vectorization for MinGW-w64. It may be a source for 2013-04-17 11:16:53 +00:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile correct too-big allocation in mesh beautify. 2013-04-01 07:57:33 +00:00
SConstruct Merged changes in the trunk up to revision 55546. 2013-03-24 12:13:13 +00:00