Small fix:
Commit I did in March (10378) tried to fix typedef callback for Group nodes, but it missed a case, causing group node display to be wrong on load (only first drawing was wrong).
This commit is contained in:
@@ -2146,6 +2146,10 @@ static void node_update(bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
/* XXX ugly hack, typeinfo for group is generated */
|
||||
if(node->type == NODE_GROUP)
|
||||
node->typeinfo->butfunc= node_buts_group;
|
||||
|
||||
/* buttons rect? */
|
||||
if((node->flag & NODE_OPTIONS) && node->typeinfo->butfunc) {
|
||||
dy-= NODE_DYS/2;
|
||||
@@ -2297,8 +2301,6 @@ static void node_draw_basis(ScrArea *sa, SpaceNode *snode, bNode *node)
|
||||
glDisable(GL_BLEND);
|
||||
}
|
||||
if(node->type == NODE_GROUP) {
|
||||
/* XXX ugly hack */
|
||||
node->typeinfo->butfunc= node_buts_group;
|
||||
|
||||
iconofs-= 18.0f;
|
||||
glEnable(GL_BLEND);
|
||||
|
||||
Reference in New Issue
Block a user