Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2011-10-06 10:56:45 +0400
committerDalai Felinto <dfelinto@gmail.com>2011-10-06 10:56:45 +0400
commitbe143cc037ad80dd792546bf0e2bd22b70c32ffe (patch)
tree4a265eef5f224ab8f86a9cfc41e837938e30af45 /source/blender/blenkernel/intern/material.c
parent0d2b936d622710a1bef2c0253da7c5d08ad067a7 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 6e1303e375e..a763941cfe9 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -1995,6 +1995,11 @@ int do_version_tface(Main *main, int fileload)
}
}
}
+ /* 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;