diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-09-21 02:38:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-09-21 02:38:04 +0400 |
commit | 9dcf337e93e02300e66739bb647031c94551a10d (patch) | |
tree | 9394007b5355c3f26c4c259ef9cc3a014013104d /source/blender/makesdna/DNA_image_types.h | |
parent | d3a8bcc435f9bfb1ff0d12d0e3f588a1fa8d19e0 (diff) |
image display option for viewing non square pixels (x/y aspect for each image) - useful when editing UV coords with textures that have been resized to values that run fast in openGL (256/512/1024) but have lost their original aspect ratio, especially useful when rotating UV's.
Bumped the subversion to 2, so the default aspect is set to 1:1.
Made "Repeat Image" option time image drawing and bail out early if its taking too long. (quater of a sec max) this could be avoided if the texture was drawn on a quad, but that wouldnt support other image draw options.
This is a good short term solution because it was possibly to lock up blender if you zoomed out a long way then enabled "Repeat Image".
Diffstat (limited to 'source/blender/makesdna/DNA_image_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_image_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h index 694279d4605..8a5a7ce4a4c 100644 --- a/source/blender/makesdna/DNA_image_types.h +++ b/source/blender/makesdna/DNA_image_types.h @@ -90,6 +90,9 @@ typedef struct Image { short gen_x, gen_y, gen_type; /* for generated images */ + /* display aspect - for UV editing images resized for faster openGL display */ + float aspx, aspy; + /*#ifdef WITH_VERSE*/ void *vnode; /* pointer at verse bitmap node */ /*#endif*/ |