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:
authorAntonioya <blendergit@gmail.com>2019-03-04 22:56:54 +0300
committerAntonioya <blendergit@gmail.com>2019-03-04 22:56:54 +0300
commit90afe3918110c1fba4b30333f07044064f465939 (patch)
treeff0b4302a3aa6eb132109e0b4ce76353f5bcce38 /source
parentad0489ded869fdf52ed036884158b5ffb7ec3735 (diff)
GPencil: Fix error in 3D Location mode
In previous commit introduced this bug. The flag was inverted and the mode was not working.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h
index 1ab45328377..c988033e722 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.h
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.h
@@ -469,7 +469,8 @@ void GPENCIL_render_to_image(void *vedata, struct RenderEngine *engine, struct R
}
#define GPENCIL_3D_DRAWMODE(ob, gpd) \
- ((gpd) && (gpd->draw_mode == GP_DRAWMODE_3D) && (ob->dtx & OB_DRAWXRAY))
+ ((gpd) && (gpd->draw_mode == GP_DRAWMODE_3D) && \
+ ((ob->dtx & OB_DRAWXRAY) == 0))
#define GPENCIL_USE_SOLID(stl) \
((stl) && ((stl->storage->is_render) || (stl->storage->is_mat_preview)))