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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-21 12:46:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-21 12:47:17 +0400
commit43d695e82e8f39b143f56d8f93c061d58bdddfbc (patch)
tree2da94c6f765a001aaa9d7df6ed0d65dfa8f1ae68 /source/blender/editors/space_node/node_draw.c
parent0ff06a9ba501e7d4130e669af3457e7017710471 (diff)
Code cleanup: view2d api naming
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index f3d02c179ff..e8dd65e7c64 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -1204,7 +1204,7 @@ static void snode_setup_v2d(SpaceNode *snode, ARegion *ar, const float center[2]
View2D *v2d = &ar->v2d;
/* shift view to node tree center */
- UI_view2d_setcenter(v2d, center[0], center[1]);
+ UI_view2d_center_set(v2d, center[0], center[1]);
UI_view2d_view_ortho(v2d);
/* aspect+font, set each time */
@@ -1289,7 +1289,7 @@ void drawnodespace(const bContext *C, ARegion *ar)
path = snode->treepath.last;
/* current View2D center, will be set temporarily for parent node trees */
- UI_view2d_getcenter(v2d, &center[0], &center[1]);
+ UI_view2d_center_get(v2d, &center[0], &center[1]);
/* store new view center in path and current edittree */
copy_v2_v2(path->view_center, center);