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/intern/draw_manager.c | |
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/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |