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:
authorJamell Moore <JamellMoore>2020-12-08 18:48:11 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-12-08 18:48:22 +0300
commit5b73083d4f207690e89f3a8863480de2bb4df24d (patch)
treee6ecec01d560427355ddfb0f7f9f200f7ae32ff8 /source/blender/draw
parentd7cf464b493581a381540673aa7ed9e4ff47b425 (diff)
Fix T81950: GPencil - Draw - Stoke Placement Stroke Feature Broken
Buffer strokes weren't being the excluded from depth only draw calls so were being included in depth tests. They are now excluded by bypassing the creation of the buffer strokes. Reviewed By: fclem Differential Revision: https://developer.blender.org/D9742
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 388deec07bf..519b015a6ad 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -252,7 +252,7 @@ void GPENCIL_cache_init(void *ved)
pd->do_fast_drawing = false;
pd->obact = draw_ctx->obact;
- if (pd->obact && pd->obact->type == OB_GPENCIL) {
+ if (pd->obact && pd->obact->type == OB_GPENCIL && !(pd->draw_depth_only)) {
/* Check if active object has a temp stroke data. */
bGPdata *gpd = (bGPdata *)pd->obact->data;
if (gpd->runtime.sbuffer_used > 0) {