diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-12 23:35:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-12 23:35:47 +0400 |
commit | c140ccb9fd3bdf4659ab9159705e868f36817566 (patch) | |
tree | ee08bc73e984592a235b496d6733f0594355f565 /source/blender/makesdna | |
parent | 38541284c5eb48eea7530f01e0a111fc80c2c078 (diff) |
2d smoothview now scales back the time to move for smaller view zoom/panning.
also the compositor bounds (used for scroll bars), were only calculated when pressing the home key in 2.63, how this is updated on draw
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 4 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_view2d_types.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index d0c2a5c9925..3f439454a97 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -168,7 +168,7 @@ typedef struct bNode { void *storage; /* custom data, must be struct, for storage in file */ struct bNode *original; /* the original node in the tree (for localized tree) */ - float locx, locy; /* root offset for drawing */ + float locx, locy; /* root offset for drawing (parent space) */ float width, height; /* node custom width and height */ float miniwidth; /* node width if hidden */ float offsetx, offsety; /* additional offset from loc */ @@ -181,7 +181,7 @@ typedef struct bNode { short need_exec, exec; /* need_exec is set as UI execution event, exec is flag during exec */ void *threaddata; /* optional extra storage for use in thread (read only then!) */ - rctf totr; /* entire boundbox */ + rctf totr; /* entire boundbox (worldspace) */ rctf butr; /* optional buttons area */ rctf prvr; /* optional preview area */ bNodePreview *preview; /* optional preview image */ diff --git a/source/blender/makesdna/DNA_view2d_types.h b/source/blender/makesdna/DNA_view2d_types.h index ab533b2859b..a3f4b362672 100644 --- a/source/blender/makesdna/DNA_view2d_types.h +++ b/source/blender/makesdna/DNA_view2d_types.h @@ -104,6 +104,7 @@ typedef struct View2D { /* general refresh settings (v2d->flag) */ /* global view2d horizontal locking (for showing same time interval) */ + /* TODO: this flag may be set in old files but is not accessible currently, should be exposed from RNA - Campbell */ #define V2D_VIEWSYNC_SCREEN_TIME (1<<0) /* within area (i.e. between regions) view2d vertical locking */ #define V2D_VIEWSYNC_AREA_VERTICAL (1<<1) |