[Bf-blender-cvs] [d7122825ecb] blender2.8: Cleanup: redundant greater than

Campbell Barton noreply at git.blender.org
Mon Jun 18 17:40:42 CEST 2018


Commit: d7122825ecbe12d6bf031ca5e1aa17a46b8fd01f
Author: Campbell Barton
Date:   Mon Jun 18 17:39:19 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd7122825ecbe12d6bf031ca5e1aa17a46b8fd01f

Cleanup: redundant greater than

===================================================================

M	source/blender/draw/intern/draw_view.c

===================================================================

diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 8d0b07e189e..a666ec5395f 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -627,7 +627,7 @@ static bool is_cursor_visible(const DRWContextState *draw_ctx, Scene *scene, Vie
 {
 	Object *ob = OBACT(view_layer);
 	View3D *v3d = draw_ctx->v3d;
-	if ((v3d->flag2 & V3D_RENDER_OVERRIDE) > 0 || (v3d->overlay.flag & V3D_OVERLAY_HIDE_CURSOR)) {
+	if ((v3d->flag2 & V3D_RENDER_OVERRIDE) || (v3d->overlay.flag & V3D_OVERLAY_HIDE_CURSOR)) {
 		return false;
 	}



More information about the Bf-blender-cvs mailing list