diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-02-04 17:05:22 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-02-04 17:05:36 +0300 |
commit | fe03bc2a02a0c9e5ecd554f72839ae0a407a8e86 (patch) | |
tree | a361542041b14b6e40f89e49c5a07bf5e3c0105f /source/blender/makesdna/DNA_view3d_types.h | |
parent | 32482aadb8ecc4c2d1f2dd73124d1b94f0febe57 (diff) |
Support rotation and flipping for background images, patch by Andre D.
(T34583) with minor changes. Thanks for the patch!
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index 069ea7a8b97..0c290ab8435 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -74,10 +74,11 @@ typedef struct BGpic { struct ImageUser iuser; struct MovieClip *clip; struct MovieClipUser cuser; - float xof, yof, size, blend; + float xof, yof, size, blend, rotation; short view; short flag; - short source, pad; + short source; + char pad[6]; } BGpic; /* ********************************* */ @@ -340,7 +341,11 @@ enum { /* Camera framing options */ V3D_BGPIC_CAMERA_ASPECT = (1 << 5), /* don't stretch to fit the camera view */ - V3D_BGPIC_CAMERA_CROP = (1 << 6) /* crop out the image */ + V3D_BGPIC_CAMERA_CROP = (1 << 6), /* crop out the image */ + + /* Axis flip options */ + V3D_BGPIC_FLIP_H = (1 << 7), + V3D_BGPIC_FLIP_V = (1 << 8) }; #define V3D_BGPIC_EXPANDED (V3D_BGPIC_EXPANDED | V3D_BGPIC_CAMERACLIP) |