diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-03-06 14:21:39 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-03-06 14:23:46 +0300 |
commit | 79558a581de707413041ab6f6af94ac5309b1dba (patch) | |
tree | c7036381f33d8ea34c300d7053553aa565619bda /source/blender/draw | |
parent | e96b1035364122178d5fcec7cf4d4bab7c8cb051 (diff) |
CodeCleanup: Use eDrawType
This patch will make use of the eDrawType where it was used as a
variable or parameter name. The eObjectDrawType was renamed to eDrawType
as it is also used by `View3DShading.type`.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/select/select_draw_utils.c | 2 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/select/select_draw_utils.c b/source/blender/draw/engines/select/select_draw_utils.c index f1d008c29c7..32bacdfab78 100644 --- a/source/blender/draw/engines/select/select_draw_utils.c +++ b/source/blender/draw/engines/select/select_draw_utils.c @@ -83,7 +83,7 @@ short select_id_get_object_select_mode(Scene *scene, Object *ob) return r_select_mode; } -static bool check_ob_drawface_dot(short select_mode, const View3D *v3d, char dt) +static bool check_ob_drawface_dot(short select_mode, const View3D *v3d, eDrawType dt) { if (select_mode & SCE_SELECT_FACE) { if ((dt < OB_SOLID) || XRAY_FLAG_ENABLED(v3d)) { diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 80001144cc0..cd9420feb77 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1130,7 +1130,7 @@ static void drw_engines_enable_external(void) /* Gather all draw engines needed and store them in DST.enabled_engines * That also define the rendering order of engines */ static void drw_engines_enable_from_engine(RenderEngineType *engine_type, - int drawtype, + eDrawType drawtype, bool use_xray) { switch (drawtype) { @@ -1179,7 +1179,7 @@ static void drw_engines_enable(ViewLayer *UNUSED(view_layer), bool gpencil_engine_needed) { View3D *v3d = DST.draw_ctx.v3d; - const int drawtype = v3d->shading.type; + const eDrawType drawtype = v3d->shading.type; const bool use_xray = XRAY_ENABLED(v3d); drw_engines_enable_from_engine(engine_type, drawtype, use_xray); |