Updating render layer and image output sockets was not working due to changes in snode_set_context. Before the r39941 this used a hack to 'test for first drawing', but since the snode->nodetree was set to NULL each time at the start of that function the condition would always evaluate true anyway. Simply removed that check to restore previous behavior.

This commit is contained in:
Lukas Toenne
2011-09-07 13:30:16 +00:00
parent 7db716599c
commit 3f565fc212

View 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;