When adding a new node in a group, the call to refresh input/output
sockets was called after a compositing update was executed.
Just moved this call 2 lines up.

This also uncommits the fix from Joilnen, the stack pointers in the node
system are *per definition* set. If NULL, it's an indication something
else is wrong.
This commit is contained in:
Ton Roosendaal
2006-07-23 09:10:05 +00:00
parent a01e81cf7d
commit a6b0c136bb
2 changed files with 2 additions and 2 deletions

View File

@@ -584,7 +584,7 @@ static void node_composit_exec_viewer(void *data, bNode *node, bNodeStack **in,
free_compbuf(cbuf);
} /* lets make only previews when not done yet, so activating doesnt update */
else if(in[0] && in[0]->data && node->preview && node->preview->rect==NULL) {
else if(in[0]->data && node->preview && node->preview->rect==NULL) {
CompBuf *cbuf, *inbuf= in[0]->data;
if(inbuf->type!=CB_RGBA) {

View File

@@ -1338,8 +1338,8 @@ bNode *node_add_node(SpaceNode *snode, int type, float locx, float locy)
node->locy -= gnode->locy;
}
node_set_active(snode, node);
snode_verify_groups(snode);
node_set_active(snode, node);
if(node->id)
id_us_plus(node->id);