[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16559] trunk/blender/source/gameengine/ Rasterizer/RAS_MaterialBucket.cpp: Fix bug that broke editing vertices through python in the game engine.

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Sep 16 21:29:22 CEST 2008


Revision: 16559
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16559
Author:   blendix
Date:     2008-09-16 21:28:54 +0200 (Tue, 16 Sep 2008)

Log Message:
-----------
Fix bug that broke editing vertices through python in the game engine.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp

Modified: trunk/blender/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp
===================================================================
--- trunk/blender/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp	2008-09-16 19:25:35 UTC (rev 16558)
+++ trunk/blender/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp	2008-09-16 19:28:54 UTC (rev 16559)
@@ -107,8 +107,13 @@
 	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++;
 	}
 }
 





More information about the Bf-blender-cvs mailing list