Ignore:
Timestamp:
05/25/06 14:26:04 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMesh.cpp

    r985 r986  
    379379Mesh *Mesh::toSharedVertex()  
    380380{ 
    381  
    382381        // Move all vertex to the shared vertex buffer. 
    383382        Mesh *mesh = new Mesh(); 
     
    500499                 
    501500                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                } 
    502528        } 
    503529 
Note: See TracChangeset for help on using the changeset viewer.