Browse Source

name vdatas after type of particle

David Rose 18 years ago
parent
commit
0c56b38f6a

+ 1 - 1
panda/src/particlesystem/lineParticleRenderer.cxx

@@ -137,7 +137,7 @@ resize_pool(int new_size) {
 void LineParticleRenderer::
 init_geoms() {
   _vdata = new GeomVertexData
-    ("particles", GeomVertexFormat::get_v3cp(),
+    ("line_particles", GeomVertexFormat::get_v3cp(),
      Geom::UH_stream);
   PT(Geom) geom = new Geom(_vdata);
   _line_primitive = geom;

+ 1 - 1
panda/src/particlesystem/pointParticleRenderer.cxx

@@ -112,7 +112,7 @@ resize_pool(int new_size) {
 void PointParticleRenderer::
 init_geoms() {
   _vdata = new GeomVertexData
-    ("particles", GeomVertexFormat::get_v3cp(),
+    ("point_particles", GeomVertexFormat::get_v3cp(),
      Geom::UH_stream);
   PT(Geom) geom = new Geom(_vdata);
   _point_primitive = geom;

+ 1 - 1
panda/src/particlesystem/sparkleParticleRenderer.cxx

@@ -133,7 +133,7 @@ resize_pool(int new_size) {
 void SparkleParticleRenderer::
 init_geoms() {
   _vdata = new GeomVertexData
-    ("particles", GeomVertexFormat::get_v3cp(),
+    ("sparkle_particles", GeomVertexFormat::get_v3cp(),
      Geom::UH_stream);
   PT(Geom) geom = new Geom(_vdata);
   _line_primitive = geom;

+ 1 - 1
panda/src/particlesystem/spriteParticleRenderer.cxx

@@ -503,7 +503,7 @@ init_geoms() {
     // For each frame of the animation...
     for (j = 0; j < _anim_size[i]; ++j) {
       _ttl_count[i] = (int *)PANDA_MALLOC_ARRAY(_anim_size[i] * sizeof(int));
-      _vdata[i].push_back(new GeomVertexData("particles", format, Geom::UH_stream));
+      _vdata[i].push_back(new GeomVertexData("sprite_particles", format, Geom::UH_stream));
       PT(Geom) geom = new Geom(_vdata[i][j]);
       _sprite_primitive[i].push_back((Geom*)geom);
       _sprites[i].push_back(new GeomPoints(Geom::UH_stream));