Bugfix #4770
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:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user