Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-01-20 17:23:32 +0300
committerTon Roosendaal <ton@blender.org>2009-01-20 17:23:32 +0300
commit81763d8cf0f7cfc3aeb6f189a8dc0611bbd61bfd (patch)
tree77d4abb657589b68803378370cf72e7ba8706488 /source/blender/editors/space_view3d/view3d_draw.c
parentb8df9948ab6b470a766946a07629644efd8270f4 (diff)
2.5
Couldn't leave to finish this; four-split 3d view now syncs the ortho views to a box-view. Brings back good old Amiga Sculpt4D feeling! :) What's not done is to use the box to clip away invisible stuff. Note that it still allows to switch top-bottom, left-right or front-back. The 4th window is entirely free. Test: use shift+alt+ctrl+S. In due time will all go the headermenu, configurable, of course.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c37
1 files changed, 22 insertions, 15 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index b2b4c2afb0d..06cfdb879cc 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -646,24 +646,31 @@ static char *view3d_get_name(View3D *v3d, RegionView3D *rv3d)
char *name = NULL;
switch (rv3d->view) {
- case 1:
- if (rv3d->persp == V3D_ORTHO)
- name = (rv3d->rflag & RV3D_OPP_DIRECTION_NAME) ? "Back Ortho" : "Front Ortho";
- else
- name = (rv3d->rflag & RV3D_OPP_DIRECTION_NAME) ? "Back Persp" : "Front Persp";
+ case V3D_VIEW_FRONT:
+ if (rv3d->persp == V3D_ORTHO) name = "Front Ortho";
+ else name = "Front Persp";
break;
- case 3:
- if (rv3d->persp == V3D_ORTHO)
- name = (rv3d->rflag & RV3D_OPP_DIRECTION_NAME) ? "Left Ortho" : "Right Ortho";
- else
- name = (rv3d->rflag & RV3D_OPP_DIRECTION_NAME) ? "Left Persp" : "Right Persp";
+ case V3D_VIEW_BACK:
+ if (rv3d->persp == V3D_ORTHO) name = "Back Ortho";
+ else name = "Back Persp";
break;
- case 7:
- if (rv3d->persp == V3D_ORTHO)
- name = (rv3d->rflag & RV3D_OPP_DIRECTION_NAME) ? "Bottom Ortho" : "Top Ortho";
- else
- name = (rv3d->rflag & RV3D_OPP_DIRECTION_NAME) ? "Bottom Persp" : "Top Persp";
+ case V3D_VIEW_TOP:
+ if (rv3d->persp == V3D_ORTHO) name = "Top Ortho";
+ else name = "Top Persp";
+ break;
+ case V3D_VIEW_BOTTOM:
+ if (rv3d->persp == V3D_ORTHO) name = "Bottom Ortho";
+ else name = "Bottom Persp";
break;
+ case V3D_VIEW_RIGHT:
+ if (rv3d->persp == V3D_ORTHO) name = "Right Ortho";
+ else name = "Right Persp";
+ break;
+ case V3D_VIEW_LEFT:
+ if (rv3d->persp == V3D_ORTHO) name = "Left Ortho";
+ else name = "Left Persp";
+ break;
+
default:
if (rv3d->persp==V3D_CAMOB) {
if ((v3d->camera) && (v3d->camera->type == OB_CAMERA)) {