diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-21 13:53:30 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-21 15:44:37 +0300 |
commit | 727e569ac3f2d7965f0054da1db56c6fa99475c2 (patch) | |
tree | 6deb322a3166e0b27266e5597c0d727e8d440b8e /source/blender/draw/engines/gpencil | |
parent | 3fe5c0e5df8191053148b4605c476b555795ee16 (diff) |
Cleanup: CodeQuality: Replace OB_DRAWXRAY by OB_DRAW_IN_FRONT
This is to match the option name and to avoid confusion with
workbench xray mode.
Diffstat (limited to 'source/blender/draw/engines/gpencil')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_cache_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c index d97bf9255d2..8a4134ec8ea 100644 --- a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c @@ -106,7 +106,7 @@ GPENCIL_tObject *gpencil_object_cache_add(GPENCIL_PrivateData *pd, Object *ob) copy_v3_v3(tgp_ob->plane_mat[3], center); /* Add to corresponding list if is in front. */ - if (ob->dtx & OB_DRAWXRAY) { + if (ob->dtx & OB_DRAW_IN_FRONT) { BLI_LINKS_APPEND(&pd->tobjects_infront, tgp_ob); } else { @@ -258,7 +258,7 @@ GPENCIL_tLayer *gpencil_layer_cache_add(GPENCIL_PrivateData *pd, { bGPdata *gpd = (bGPdata *)ob->data; - const bool is_in_front = (ob->dtx & OB_DRAWXRAY); + const bool is_in_front = (ob->dtx & OB_DRAW_IN_FRONT); const bool is_screenspace = (gpd->flag & GP_DATA_STROKE_KEEPTHICKNESS) != 0; const bool overide_vertcol = (pd->v3d_color_type != -1); const bool is_vert_col_mode = (pd->v3d_color_type == V3D_SHADING_VERTEX_COLOR) || |