Fix for Collada importer to set aiMesh::mName

Peter
2012-09-12
2013-06-03
  • Peter

    Peter - 2012-09-12

    Hi,

    We are using assimp for importing collada scenes, which works very well except for that assimp leaves mesh names (aiMesh::mName) blank. I have made the following change to correct this:

    --- code/ColladaLoader.cpp  (revision 1300)
    +++ code/ColladaLoader.cpp  (working copy)
    @@ -504,6 +504,7 @@
    
                    // assign the material index
                    dstMesh->mMaterialIndex = matIdx;
    +               dstMesh->mName = mid.mMeshOrController;
                }
            }
        }
    

    Could this fix be included in future releases? It is otherwise impossible to differentiate between different meshes attached at the same node.

    Thank you for this convenient library!

     
  • Thomas Ziegenhagen

    Comitted as … erm… some current revision. Thanks for your time.

     
  • Peter

    Peter - 2012-09-21

    Great, thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks