GPencil: Fix error in 3D Location mode

In previous commit introduced this bug. The flag was inverted and the mode was not working.
This commit is contained in:
Antonio Vazquez 2019-03-04 20:56:54 +01:00
parent ad0489ded8
commit 90afe39181
Notes: blender-bot 2023-02-14 06:00:46 +01:00
Referenced by issue #62246, Blender crash when File -> Save as ...
Referenced by issue #62228, Data Transfer Modifier
Referenced by issue #62235, Constant crashes file save, save as, new workspace, etc. perhaps related to grease pencil
Referenced by issue #62191, Blender 2.8 - Object Animation - animated hide_render and hide_viewport do not work as expected
Referenced by issue #62169, Object hidden in Collection is visible in Collection-Instance
1 changed files with 2 additions and 1 deletions

View File

@ -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)))