[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40827] trunk/blender/source/blender/ blenkernel/intern/material.c: texface fix: if material is not used by mesh set default bge mat flag ( backface culling on)

Dalai Felinto dfelinto at gmail.com
Thu Oct 6 08:56:46 CEST 2011


Revision: 40827
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40827
Author:   dfelinto
Date:     2011-10-06 06:56:45 +0000 (Thu, 06 Oct 2011)
Log Message:
-----------
texface fix: if material is not used by mesh set default bge mat flag (backface culling on)
report by Mitchell Stokes over IRC, but probably one of the reason people have been asking
to expose the Game Settings material panel in the Render engine as well.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/material.c

Modified: trunk/blender/source/blender/blenkernel/intern/material.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/material.c	2011-10-06 06:16:20 UTC (rev 40826)
+++ trunk/blender/source/blender/blenkernel/intern/material.c	2011-10-06 06:56:45 UTC (rev 40827)
@@ -1995,6 +1995,11 @@
 				}
 			}
 		}
+		/* material is not used by faces with texface
+		 * set the default flag - do it only once */
+		else
+			 if (fileload)
+					ma->game.flag = GEMAT_BACKCULL;
 	}
 
 	return nowarning;




More information about the Bf-blender-cvs mailing list