Fix for #34739 and #35060, avoid ambiguity in compositor viewer nodes.
[blender.git] / source / blender / compositor / intern / COM_ExecutionSystem.cpp
index 450d1b03917527024731a584bf7c4370afba2c37..ad29405d2e9578e8ac1c3199e7f6a2584ac99432 100644 (file)
@@ -53,16 +53,6 @@ ExecutionSystem::ExecutionSystem(RenderData *rd, bNodeTree *editingtree, bool re
        this->m_context.setbNodeTree(editingtree);
        this->m_context.setPreviewHash(editingtree->previews);
        this->m_context.setFastCalculation(fastcalculation);
-#if 0  /* XXX TODO find a better way to define visible output nodes from all editors */
-       bNode *gnode;
-       for (gnode = (bNode *)editingtree->nodes.first; gnode; gnode = gnode->next) {
-               if (gnode->type == NODE_GROUP && gnode->typeinfo->group_edit_get(gnode)) {
-                       this->m_context.setActivegNode(gnode);
-                       break;
-               }
-       }
-#endif
-
        /* initialize the CompositorContext */
        if (rendering) {
                this->m_context.setQuality((CompositorQuality)editingtree->render_quality);