Changeset 986 for GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMesh.cpp
- Timestamp:
- 05/25/06 14:26:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMesh.cpp
r985 r986 379 379 Mesh *Mesh::toSharedVertex() 380 380 { 381 382 381 // Move all vertex to the shared vertex buffer. 383 382 Mesh *mesh = new Mesh(); … … 500 499 501 500 acumVerts += long(mSubMesh[i].mVertexBuffer->mVertexCount); 501 502 // Copy submesh bones. 503 if (!mSubMesh[i].mBones.empty()) 504 { 505 for (unsigned int j = 0; j < mSubMesh[i].mBones.size(); j++) 506 { 507 mesh->mSubMesh[i].mBones.push_back(mSubMesh[i].mBones[j]); 508 } 509 } 510 511 } 512 513 // Copy skeleton name. 514 if (hasSkeleton) 515 { 516 mesh->hasSkeleton = true; 517 518 strcpy(mesh->mSkeletonName,mSkeletonName); 519 } 520 521 // Copy mesh bones. 522 if (!mBones.empty()) 523 { 524 for (unsigned int j = 0; j < mBones.size(); j++) 525 { 526 mesh->mBones.push_back(mBones[j]); 527 } 502 528 } 503 529
Note: See TracChangeset
for help on using the changeset viewer.