[Bf-blender-cvs] [f1186cb] master: Fix T39524: Backface culling is always on in Textured view in BI.
Bastien Montagne
noreply at git.blender.org
Mon Mar 31 20:08:57 CEST 2014
Commit: f1186cb113941e87eebb03c80b9e8c4f3faee7c2
Author: Bastien Montagne
Date: Mon Mar 31 20:05:09 2014 +0200
https://developer.blender.org/rBf1186cb113941e87eebb03c80b9e8c4f3faee7c2
Fix T39524: Backface culling is always on in Textured view in BI.
Special case I did not think about in own previous culling fix (rB0f95149a7849).
===================================================================
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 75a02b7..bc9a9aa 100644
--- a/source/blender/editors/space_view3d/drawmesh.c
+++ b/source/blender/editors/space_view3d/drawmesh.c
@@ -255,9 +255,9 @@ static bool set_draw_settings_cached(int clearcache, MTFace *texface, Material *
/* convert number of lights into boolean */
if (gtexdraw.is_lit) lit = 1;
+ backculled = gtexdraw.use_backface_culling;
if (ma) {
if (ma->mode & MA_SHLESS) lit = 0;
- backculled = gtexdraw.use_backface_culling;
if (gtexdraw.use_game_mat) {
backculled = backculled || (ma->game.flag & GEMAT_BACKCULL);
alphablend = ma->game.alpha_blend;
More information about the Bf-blender-cvs
mailing list