diff options
author | Matt Ebb <matt@mke3.net> | 2010-03-30 09:52:05 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-03-30 09:52:05 +0400 |
commit | b09ee4923d4066ec032fb3105355c79618352b46 (patch) | |
tree | 1f54c5a497ef48e08790de6b2da394cb02f93e01 /source/blender/makesdna | |
parent | 5089663962a14a3cc21f342db66a0c157bfd7dfc (diff) |
Fix [#21711] Position of 2d cursor is not displayed correctly and cannot be set
in uv/image editor properties panel
Note: Moved UV editor 2d cursor to SpaceImage rather than View2d, so it's
more accessible to RNA.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_view2d_types.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index e575ff47b29..d74ba77bf91 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -252,6 +252,7 @@ typedef struct SpaceImage { char sticky; /* sticky selection type */ char dt_uvstretch; char around; + float cursor[2]; /* UV editor 2d cursor */ float xof, yof; /* user defined offset, image is centered */ float zoom, pad4; /* user defined zoom level */ diff --git a/source/blender/makesdna/DNA_view2d_types.h b/source/blender/makesdna/DNA_view2d_types.h index 965e19e38a2..75ad1e644d1 100644 --- a/source/blender/makesdna/DNA_view2d_types.h +++ b/source/blender/makesdna/DNA_view2d_types.h @@ -58,7 +58,6 @@ typedef struct View2D { short oldwinx, oldwiny; /* storage of previous winx/winy values encountered by UI_view2d_curRect_validate(), for keepaspect */ short around; /* pivot point for transforms (rotate and scale) */ - float cursor[2]; /* only used in the UV view for now (for 2D-cursor) */ float *tab_offset; /* different offset per tab, for buttons */ int tab_num; /* number of tabs stored */ |