diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
commit | fe8d5b81b09462d2344a50b32bfd2d8df5c6d886 (patch) | |
tree | 6f1df9a8387a95c7fca3b28ecf168f1cb06214ea /source/blender/blenlib | |
parent | de8e066a1ca29fe58295ee6b12b735d023528681 (diff) |
use c90 compatible static initializers.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/uvproject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c index cc115d52928..b08f05b4fc8 100644 --- a/source/blender/blenlib/intern/uvproject.c +++ b/source/blender/blenlib/intern/uvproject.c @@ -60,7 +60,9 @@ void project_from_camera(float target[2], float source[3], UvCameraInfo *uci) target[1]= pv4[1] / uci->camsize; } else { - float vec2d[2]= {pv4[0], pv4[2]}; /* 2D position from the camera */ + float vec2d[2]; /* 2D position from the camera */ + vec2d[0]= pv4[0]; + vec2d[1]= pv4[2]; target[0]= angle * (M_PI / uci->camangle); target[1]= pv4[1] / (len_v2(vec2d) * uci->camsize); } |