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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-16 23:28:54 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-16 23:28:54 +0400
commit99cd0dd5d5373a2437a99b69d3731043d3b014bb (patch)
tree4b17d80eb13827b34a9f206e56e472cfa4d211b5 /source/gameengine/Rasterizer/RAS_MaterialBucket.cpp
parentc6d0be2a9943818b98db3831e5d56969bd95c5fa (diff)
Fix bug that broke editing vertices through python in the game engine.
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_MaterialBucket.cpp')
-rw-r--r--source/gameengine/Rasterizer/RAS_MaterialBucket.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp b/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp
index 788af29c4bb..2b129f51609 100644
--- a/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp
+++ b/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp
@@ -107,8 +107,13 @@ RAS_MeshSlot::RAS_MeshSlot(const RAS_MeshSlot& slot)
m_endindex = slot.m_endindex;
for(it=m_displayArrays.begin(); it!=m_displayArrays.end(); it++) {
- *it = new RAS_DisplayArray(**it);
- (*it)->m_users = 1;
+ // don't copy display arrays for now because it breaks python
+ // access to vertices, but we'll need a solution if we want to
+ // join display arrays for reducing draw calls.
+ //*it = new RAS_DisplayArray(**it);
+ //(*it)->m_users = 1;
+
+ (*it)->m_users++;
}
}