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:
authorMitchell Stokes <mogurijin@gmail.com>2013-11-04 23:21:50 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-11-04 23:21:50 +0400
commit0cec5c63dabf1fa8a1c54642cc029bbf0001ef01 (patch)
treebc390a19c826721c1bef0b569226e0bc9c14304f /source/gameengine/Ketsji/KX_MeshProxy.cpp
parenta35e9daaef3c4342e7c4881dbb535c96ecc7bc34 (diff)
BGE Rasterizer Cleanup: Removing the Singletexture material mode. More conversion code will probably be needed.
Diffstat (limited to 'source/gameengine/Ketsji/KX_MeshProxy.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_MeshProxy.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/source/gameengine/Ketsji/KX_MeshProxy.cpp b/source/gameengine/Ketsji/KX_MeshProxy.cpp
index 2a9d59e8b7b..c288c647fa2 100644
--- a/source/gameengine/Ketsji/KX_MeshProxy.cpp
+++ b/source/gameengine/Ketsji/KX_MeshProxy.cpp
@@ -39,7 +39,6 @@
#include "KX_VertexProxy.h"
#include "KX_PolyProxy.h"
-#include "KX_PolygonMaterial.h"
#include "KX_BlenderMaterial.h"
#include "KX_PyMath.h"
@@ -388,14 +387,8 @@ PyObject *KX_MeshProxy::pyattr_get_materials(void *self_v, const KX_PYATTRIBUTE_
for (i=0; i<tot; mit++, i++) {
RAS_IPolyMaterial *polymat = mit->m_bucket->GetPolyMaterial();
- if (polymat->GetFlag() & RAS_BLENDERMAT) {
- KX_BlenderMaterial *mat = static_cast<KX_BlenderMaterial *>(polymat);
- PyList_SET_ITEM(materials, i, mat->GetProxy());
- }
- else {
- KX_PolygonMaterial *mat = static_cast<KX_PolygonMaterial *>(polymat);
- PyList_SET_ITEM(materials, i, mat->GetProxy());
- }
+ KX_BlenderMaterial *mat = static_cast<KX_BlenderMaterial *>(polymat);
+ PyList_SET_ITEM(materials, i, mat->GetProxy());
}
return materials;
}