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
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2016-10-13 05:50:42 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-13 05:50:42 +0300
commitc565f7b5fde35ccc9e7457725528e6f5a5946c62 (patch)
tree3ebf4f18142bf812205b67487b1094f40f0c943f /source
parent165bdfb6721e153e40f0c85d4e7b7b9f012a9704 (diff)
viewport: bring the manipulators
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 86e12b28d7f..a9a89a67daa 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -48,6 +48,7 @@
#include "DNA_windowmanager_types.h"
#include "ED_screen.h"
+#include "ED_transform.h"
#include "GPU_immediate.h"
@@ -959,7 +960,10 @@ static void draw_all_objects(const bContext *C, ARegion *ar, const bool only_dep
if (only_depth)
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
- glDisable(GL_DEPTH_TEST);
+ if (only_depth || use_depth) {
+ glDisable(GL_DEPTH_TEST);
+ v3d->zbuf = false;
+ }
}
/**
@@ -1041,6 +1045,16 @@ static void view3d_draw_reference_images(const bContext *C)
}
/**
+* 3D manipulators
+*/
+static void view3d_draw_manipulator(const bContext *C)
+{
+ View3D *v3d = CTX_wm_view3d(C);
+ v3d->zbuf = false;
+ BIF_draw_manipulator(C);
+}
+
+/**
* Grease Pencil
*/
static void view3d_draw_grease_pencil(const bContext *C)
@@ -1067,6 +1081,7 @@ static void view3d_draw_view(const bContext *C, ARegion *ar, DrawData *draw_data
view3d_draw_other_elements(C, ar);
view3d_draw_tool_ui(C);
view3d_draw_reference_images(C);
+ view3d_draw_manipulator(C);
view3d_draw_grease_pencil(C);
}