diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-19 11:26:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-19 16:22:58 +0300 |
commit | 288892bf08f380afdfe7f2f8f5b1ca2d2e037fe3 (patch) | |
tree | e0cf69efaad904000ee93541b67d94d94d4c0ff3 /source/blender/editors/space_node | |
parent | ba4d23fe37ee626c92c61bf0f78f64dcc2d95114 (diff) |
Make UI block drawing closer to master
There is no need to break assumptions of what's being modified
by this call and what's restored. The changes in this function
simply spread crappyness outside of the UI block.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index f80d47b1974..42cb2463651 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -1188,20 +1188,10 @@ void node_set_cursor(wmWindow *win, SpaceNode *snode, float cursor[2]) void node_draw_default(const bContext *C, ARegion *ar, SpaceNode *snode, bNodeTree *ntree, bNode *node, bNodeInstanceKey key) { - glMatrixMode(GL_PROJECTION); - gpuPushProjectionMatrix(); - glMatrixMode(GL_MODELVIEW); - gpuPushMatrix(); - if (node->flag & NODE_HIDDEN) node_draw_hidden(C, ar, snode, ntree, node, key); else node_draw_basis(C, ar, snode, ntree, node, key); - - glMatrixMode(GL_PROJECTION); - gpuPopProjectionMatrix(); - glMatrixMode(GL_MODELVIEW); - gpuPopMatrix(); } static void node_update(const bContext *C, bNodeTree *ntree, bNode *node) |