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:
authorAntonioya <blendergit@gmail.com>2018-10-03 21:25:14 +0300
committerAntonioya <blendergit@gmail.com>2018-10-03 21:25:14 +0300
commit5f4d2be7352963f48add549dadd33724d3aa83dd (patch)
tree2400be725daf05d074beb615e868ee17b7f80c87 /source/blender/draw/intern/draw_view.c
parent9c09998530041744a183dfae3da435806272623b (diff)
GP: Hide dummy and cursor in drawing mode
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r--source/blender/draw/intern/draw_view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 31a79bcda94..0444e298044 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -165,6 +165,11 @@ static bool is_cursor_visible(const DRWContextState *draw_ctx, Scene *scene, Vie
return false;
}
+ /* grease pencil draw mode hide always */
+ if ((ob) && (ob->mode == OB_MODE_GPENCIL_PAINT)) {
+ return false;
+ }
+
return true;
}