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>2010-07-19 23:57:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-19 23:57:28 +0400
commit5095e97ea6d4be29c5fc803ea613cab69f5dd39c (patch)
tree277e2975b1465e17c2eb854aca51d2f0e30c3000 /source/blender/editors/space_view3d/view3d_draw.c
parentc2945d31e7e9a1558ba892b5bbabc337f4263d24 (diff)
use the world horizon color when view3d render only option is set
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index c3d034eebd3..f282bc204a6 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -2208,7 +2208,11 @@ void view3d_main_area_draw(const bContext *C, ARegion *ar)
}
/* clear background */
- UI_ThemeClearColor(TH_BACK);
+ if((v3d->flag2 & V3D_RENDER_OVERRIDE) && scene->world)
+ glClearColor(scene->world->horr, scene->world->horg, scene->world->horb, 0.0);
+ else
+ UI_ThemeClearColor(TH_BACK);
+
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
/* setup view matrices */