From 79558a581de707413041ab6f6af94ac5309b1dba Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 6 Mar 2020 12:21:39 +0100 Subject: 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`. --- source/blender/editors/include/ED_view3d_offscreen.h | 6 +++--- source/blender/editors/space_view3d/view3d_draw.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/include/ED_view3d_offscreen.h b/source/blender/editors/include/ED_view3d_offscreen.h index 5a31516ec64..4c0d081bcd8 100644 --- a/source/blender/editors/include/ED_view3d_offscreen.h +++ b/source/blender/editors/include/ED_view3d_offscreen.h @@ -43,7 +43,7 @@ struct View3DShading; void ED_view3d_draw_offscreen(struct Depsgraph *depsgraph, struct Scene *scene, - eObjectDrawType drawtype, + eDrawType drawtype, struct View3D *v3d, struct ARegion *ar, int winx, @@ -59,7 +59,7 @@ void ED_view3d_draw_offscreen(struct Depsgraph *depsgraph, struct ImBuf *ED_view3d_draw_offscreen_imbuf(struct Depsgraph *depsgraph, struct Scene *scene, - eObjectDrawType drawtype, + eDrawType drawtype, struct View3D *v3d, struct ARegion *ar, int sizex, @@ -72,7 +72,7 @@ struct ImBuf *ED_view3d_draw_offscreen_imbuf(struct Depsgraph *depsgraph, struct ImBuf *ED_view3d_draw_offscreen_imbuf_simple(struct Depsgraph *depsgraph, struct Scene *scene, struct View3DShading *shading_override, - eObjectDrawType drawtype, + eDrawType drawtype, struct Object *camera, int width, int height, diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index c58c4b33f05..101e04664ec 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1631,7 +1631,7 @@ static void view3d_stereo3d_setup_offscreen(Depsgraph *depsgraph, void ED_view3d_draw_offscreen(Depsgraph *depsgraph, Scene *scene, - eObjectDrawType drawtype, + eDrawType drawtype, View3D *v3d, ARegion *ar, int winx, @@ -1711,7 +1711,7 @@ void ED_view3d_draw_offscreen(Depsgraph *depsgraph, */ ImBuf *ED_view3d_draw_offscreen_imbuf(Depsgraph *depsgraph, Scene *scene, - eObjectDrawType drawtype, + eDrawType drawtype, View3D *v3d, ARegion *ar, int sizex, @@ -1857,7 +1857,7 @@ ImBuf *ED_view3d_draw_offscreen_imbuf(Depsgraph *depsgraph, ImBuf *ED_view3d_draw_offscreen_imbuf_simple(Depsgraph *depsgraph, Scene *scene, View3DShading *shading_override, - eObjectDrawType drawtype, + eDrawType drawtype, Object *camera, int width, int height, -- cgit v1.2.3