Fix bug that broke editing vertices through python in the game engine.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Sep 2008 19:28:54 +0000 (19:28 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Sep 2008 19:28:54 +0000 (19:28 +0000)
source/gameengine/Rasterizer/RAS_MaterialBucket.cpp

index 788af29c4bbc8024db99025906aa6f1f0f67fadc..2b129f51609a26f76bb10dd37b6999b95ccc909c 100644 (file)
@@ -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++;
        }
 }