Ignore:
Timestamp:
06/30/06 14:22:34 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

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

    r1009 r1070  
    514514                } 
    515515                 
     516                //      Shared bones. 
     517                if (!mSubMesh[i].mBones.empty()) 
     518                { 
     519                        for (unsigned int j = 0; j < mSubMesh[i].mBones.size(); j++) 
     520                        { 
     521                                mesh->mBones.push_back(mSubMesh[i].mBones[j]); 
     522                                 
     523                                mesh->mBones.back().vertexIndex += acumVerts; 
     524                        } 
     525                } 
     526 
    516527                acumVerts       +=      long(mSubMesh[i].mVertexBuffer->mVertexCount); 
    517  
    518                 //      Copy submesh bones. 
    519                 if (!mSubMesh[i].mBones.empty()) 
    520                 { 
    521                         for (unsigned int j = 0; j < mSubMesh[i].mBones.size(); j++) 
    522                         { 
    523                                 mesh->mSubMesh[i].mBones.push_back(mSubMesh[i].mBones[j]); 
    524                         } 
    525                 } 
    526  
    527528        } 
    528529 
     
    535536        } 
    536537 
     538        /* 
    537539        //      Copy mesh bones. 
    538540        if (!mBones.empty()) 
     
    543545                } 
    544546        } 
     547        */ 
    545548 
    546549        return mesh; 
Note: See TracChangeset for help on using the changeset viewer.