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:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-05-29 17:37:51 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2009-05-29 17:37:51 +0400
commitdd9c9efde7d8fbc2247b6c6b3d15c5c76aa787b9 (patch)
treea1db96598b066c80abda2efbd000cfbbb7857d85 /source/gameengine/Ketsji/KX_GameObject.cpp
parent092b13ef3a1346daea10448a310b2529a749ff7c (diff)
BGE modifier: last minute commit to fix a nasty bug with modifers messing the alpha blend mode of the GE. Note the alpha sorting on modified mesh is not implemented so derived mesh should not have alpha faces (clip will work though). Incidently fixed a performance problem in GLSL where the derived mesh was possibly rendered multiple times. Modifier support is still a bit experimental and should not be used in production game.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp
index f75f611f9bb..04b1276569e 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -460,17 +460,16 @@ void KX_GameObject::AddMeshUser()
{
for (size_t i=0;i<m_meshes.size();i++)
{
- m_meshes[i]->AddMeshUser(this, &m_meshSlots);
+ m_meshes[i]->AddMeshUser(this, &m_meshSlots, GetDeformer());
}
// set the part of the mesh slot that never change
double* fl = GetOpenGLMatrixPtr()->getPointer();
- RAS_Deformer *deformer = GetDeformer();
SG_QList::iterator<RAS_MeshSlot> mit(m_meshSlots);
+ RAS_MeshSlot* ms;
for(mit.begin(); !mit.end(); ++mit)
{
(*mit)->m_OpenGLMatrix = fl;
- (*mit)->SetDeformer(deformer);
}
UpdateBuckets(false);
}