Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-10-29 13:48:50 +0300
committerTon Roosendaal <ton@blender.org>2007-10-29 13:48:50 +0300
commit13cff52e8429344446e35b0c342cbc436ffc7021 (patch)
tree2356c9b2973d7e779d14c24c962290c222569feb /source
parente448f20db5e3d283f25898d07f64200f1acb8b3f (diff)
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).
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawnode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/drawnode.c b/source/blender/src/drawnode.c
index 9c82b723a04..78c36d97746 100644
--- a/source/blender/src/drawnode.c
+++ b/source/blender/src/drawnode.c
@@ -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);