diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-30 15:38:06 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-30 15:38:06 +0400 |
commit | 19fb497d139991ec759f3be3db53a27492c62877 (patch) | |
tree | 4a78caebf1832a1e755a031d7db86d61b1631322 /source/blender/editors/transform/transform_generics.c | |
parent | ccdd490957f19ecc9e59bcf9a85ecc25788da99c (diff) |
Fix a few warning in editors/ module.
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 1fd189e8b52..0e47034d881 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1221,9 +1221,8 @@ void calculateCenterCursor(TransInfo *t) void calculateCenterCursor2D(TransInfo *t) { - View2D *v2d= t->view; float aspx=1.0, aspy=1.0; - float *cursor; + float *cursor= NULL; if(t->spacetype==SPACE_IMAGE) { SpaceImage *sima= (SpaceImage *)t->sa->spacedata.first; @@ -1232,7 +1231,7 @@ void calculateCenterCursor2D(TransInfo *t) cursor = sima->cursor; } - if (v2d) { + if (cursor) { t->center[0] = cursor[0] * aspx; t->center[1] = cursor[1] * aspy; } |