Correction in Collada loader ?

Anonymous
2013-04-05
2013-06-03

  • Anonymous
    2013-04-05

    Hello,

    When trying to open this model, assimp show an error about "Unexpected sub element in tag vertices"

    I traced it down to the presence of tags

    <extra>
        <technique profile="EAVIS"
              <double_sided>1</double_sided>
        </technique>
    </extra>

    in the triangles nodes.

    The correction to this problem is to add :

    else if( IsElement( "technique") || IsElement( "extra"))
    {
    SkipElement();
    }

    in void ColladaParser::ReadIndexData( Mesh* pMesh)

    Is it a good fix? Is it normal to find those tags there?

    Thank you!