Updating render layer and image output sockets was not working due to changes in...
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 7 Sep 2011 13:30:16 +0000 (13:30 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 7 Sep 2011 13:30:16 +0000 (13:30 +0000)
source/blender/editors/space_node/node_edit.c

index b5633d509979f2764defcc44432710b277e0cac9..43f8a0715972f04badcb7273813758c51bd83928 100644 (file)
@@ -447,9 +447,8 @@ void snode_set_context(SpaceNode *snode, Scene *scene)
        else if(snode->treetype==NTREE_COMPOSIT) {
                snode->id= &scene->id;
                
-               /* bit clumsy but reliable way to see if we draw first time */
-               if(snode->nodetree==NULL)
-                       ntreeCompositForceHidden(scene->nodetree, scene);
+               /* update output sockets based on available layers */
+               ntreeCompositForceHidden(scene->nodetree, scene);
        }
        else if(snode->treetype==NTREE_TEXTURE) {
                Tex *tx= NULL;