[Bf-blender-cvs] [0366230] gooseberry_farm: Cleanup, use define instead of magic number

Antony Riakiotakis noreply at git.blender.org
Wed Jun 17 16:34:02 CEST 2015


Commit: 03662309ace58fab75502131100ace7b877e5c64
Author: Antony Riakiotakis
Date:   Wed Jun 17 16:29:13 2015 +0200
Branches: gooseberry_farm
https://developer.blender.org/rB03662309ace58fab75502131100ace7b877e5c64

Cleanup, use define instead of magic number

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

M	source/blender/editors/space_view3d/drawmesh.c

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

diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c
index b374ce6..96ea5d8 100644
--- a/source/blender/editors/space_view3d/drawmesh.c
+++ b/source/blender/editors/space_view3d/drawmesh.c
@@ -579,7 +579,7 @@ static DMDrawOption draw_tface__set_draw(MTFace *tface, const bool UNUSED(has_mc
 {
 	Material *ma = give_current_material(Gtexdraw.ob, matnr + 1);
 
-	if (ma && (ma->game.flag & GEMAT_INVISIBLE)) return 0;
+	if (ma && (ma->game.flag & GEMAT_INVISIBLE)) return DM_DRAW_OPTION_SKIP;
 
 	if (tface || Gtexdraw.is_texpaint)
 		set_draw_settings_cached(0, tface, ma, Gtexdraw);




More information about the Bf-blender-cvs mailing list