photo

[SOLVED] Cut and paste error in code

Recommended Posts

Posted (edited)

Hello,

Don't know how critical this is but 2.9, 2.10 and 2.11 alpha all have:

int Mesh::getNumIndices(int surface) const
{
    int num_cindices = getCIndices(surface).size();
    int num_tindices = getCIndices(surface).size();
    if (num_cindices != num_tindices)
        Log::error("Mesh::getNumIndices(): bad number of indices\n");
    return getCIndices(surface).size();
}

of course it should be int num_tindices = getTIndices(surface).size();

Regards,

Adrian L.

Edited by adrian.licuriceanu

Share this post


Link to post

Adrian,

Good catch, thank you! It's not very critical, but we will surely fix it.

Share this post


Link to post

Hi, I don't know how critical this is. We are reviewing the source and stumble upon this again and I can see that is still not fixed in 2.12.

Kind Regards,

Adrian L.

Share this post


Link to post

As far as I can see it has been already fixed in the 2.12 SDK.

Share this post


Link to post

Yes, indeed, thank you!

Share this post


Link to post