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:
authorCampbell Barton <ideasman42@gmail.com>2012-01-18 15:10:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-18 15:10:02 +0400
commit9ba8f57d586a55352d4f5d922158187384248220 (patch)
treef18ea5e889f33306f8886a8adfe8de7462824d2f /source/blender/editors
parentdcceda33a67139a126397daafc754edd143b7036 (diff)
edit to r43487
- make red outline more obvious (was hard to see when the camera was selected) - remove text, red-alert text IMHO should only be used when something is wrong (example - its used when FPS cant keep up), but this is just information. realize out UI isnt dealing well with added view3d options but dont think its good to solve by displaying options as text overlay. red outline for the camera is just a hint which users notice when enabling the camera, think its acceptable.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 24246f6016b..1fa50124a28 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -829,16 +829,6 @@ static void draw_viewport_name(ARegion *ar, View3D *v3d)
}
}
-static void draw_camera_view_locked(ARegion *ar, View3D *v3d)
-{
- RegionView3D *rv3d= ar->regiondata;
-
- if (v3d->flag2 & V3D_LOCK_CAMERA && rv3d->persp==RV3D_CAMOB) {
- UI_ThemeColor(TH_REDALERT);
- BLF_draw_default_ascii(22, ar->winy-28, 0.0f, "Camera is LOCKED to view", BLF_DRAW_STR_DUMMY_MAX);
- }
-}
-
/* draw info beside axes in bottom left-corner:
* framenum, object name, bone name (if available), marker name (if available)
*/
@@ -1107,11 +1097,8 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
setlinestyle(0);
-
- if (v3d->flag2 & V3D_LOCK_CAMERA)
- UI_ThemeColor(TH_REDALERT);
- else
- UI_ThemeColor(TH_BACK);
+
+ UI_ThemeColor(TH_BACK);
glRectf(x1i, y1i, x2i, y2i);
@@ -1124,6 +1111,13 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d)
#endif
setlinestyle(3);
+
+ /* outer line not to confuse with object selecton */
+ if (v3d->flag2 & V3D_LOCK_CAMERA) {
+ UI_ThemeColor(TH_REDALERT);
+ glRectf(x1i - 1, y1i - 1, x2i + 1, y2i + 1);
+ }
+
UI_ThemeColor(TH_WIRE);
glRectf(x1i, y1i, x2i, y2i);
@@ -2905,8 +2899,6 @@ static void view3d_main_area_draw_info(const bContext *C, ARegion *ar, const cha
draw_viewport_name(ar, v3d);
}
- draw_camera_view_locked(ar, v3d);
-
if (grid_unit) { /* draw below the viewport name */
char numstr[32]= "";