diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-30 06:22:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-30 06:22:22 +0300 |
commit | 3d9988cde77d1c7817df2f66a174077000c9554c (patch) | |
tree | dfeb46f023293af40d82c69f9e0790c4fbc00d5d /source/blender/editors/space_view3d | |
parent | 11ea90933c3a7b0bcafce63bb025ce13c11d20b5 (diff) |
Fix #19473: Toggle Quad View options missing from UI.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 1196ea73f54..ad061532045 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -162,6 +162,8 @@ static void view3d_boxview_clip(ScrArea *sa) if(rv3d->viewlock & RV3D_BOXCLIP) { rv3d->rflag |= RV3D_CLIPPING; memcpy(rv3d->clip, clip, sizeof(clip)); + if(rv3d->clipbb) MEM_freeN(rv3d->clipbb); + rv3d->clipbb= MEM_dupallocN(bb); } } } @@ -227,6 +229,34 @@ void view3d_boxview_copy(ScrArea *sa, ARegion *ar) view3d_boxview_clip(sa); } +void ED_view3d_quadview_update(ScrArea *sa, ARegion *ar) +{ + RegionView3D *rv3d= ar->regiondata; + short viewlock; + + /* this function copies flags from the first of the 3 other quadview + regions to the 2 other, so it assumes this is the region whose + properties are always being edited, weak */ + viewlock= rv3d->viewlock; + + if((viewlock & RV3D_LOCKED)==0) + viewlock= 0; + else if((viewlock & RV3D_BOXVIEW)==0) + viewlock &= ~RV3D_BOXCLIP; + + for(; ar; ar= ar->prev) { + if(ar->alignment==RGN_ALIGN_QSPLIT) { + rv3d= ar->regiondata; + rv3d->viewlock= viewlock; + } + } + + if(rv3d->viewlock & RV3D_BOXVIEW) + view3d_boxview_copy(sa, sa->regionbase.last); + + ED_area_tag_redraw(sa); +} + /* ************************** init for view ops **********************************/ typedef struct ViewOpsData { |