diff options
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 6 |
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 f6afa112f08..aafd36a5bb8 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -39,6 +39,7 @@ #include "BKE_scene.h" #include "BKE_object.h" #include "BKE_paint.h" +#include "BKE_studiolight.h" #include "BKE_unit.h" #include "BLF_api.h" @@ -1088,7 +1089,7 @@ static void draw_rotation_guide(const RegionView3D *rv3d) color[3] = 63; /* somewhat faint */ immAttr4ubv(col, color); float angle = 0.0f; - for (int i = 0; i < ROT_AXIS_DETAIL; ++i, angle += step) { + for (int i = 0; i < ROT_AXIS_DETAIL; i++, angle += step) { float p[3] = {s * cosf(angle), s * sinf(angle), 0.0f}; if (!upright) { @@ -1860,6 +1861,9 @@ ImBuf *ED_view3d_draw_offscreen_imbuf_simple(Depsgraph *depsgraph, if (drawtype == OB_MATERIAL) { v3d.shading.flag = V3D_SHADING_SCENE_WORLD | V3D_SHADING_SCENE_LIGHTS; } + else if (drawtype == OB_RENDER) { + v3d.shading.flag = V3D_SHADING_SCENE_WORLD_RENDER | V3D_SHADING_SCENE_LIGHTS_RENDER; + } v3d.flag2 = V3D_HIDE_OVERLAYS; |