Small feature for the viewer linking operator: When no viewer node is present in...
authorLukas Toenne <lukas.toenne@googlemail.com>
Sun, 4 Mar 2012 10:49:13 +0000 (10:49 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Sun, 4 Mar 2012 10:49:13 +0000 (10:49 +0000)
commitdceab32f7874bdfd03fb936a51af38966ecc20d5
tree4b55dc1c119fdd9c16a1e1758e518e08d4794656
parentf6ae27daef0e0a27e0c14ef3412161eec229c539
Small feature for the viewer linking operator: When no viewer node is present in the tree, it automatically adds a new one next to the output socket.

Also changed the poll function of that operator to make sure it actually only works on compositor trees (others don't have viewer nodes).
source/blender/editors/space_node/node_edit.c