Page MenuHome

Fix T81537: UV index greater than total UV coordinates
AbandonedPublic

Authored by hejing (campanulamediuml) on Oct 8 2020, 4:43 PM.

Details

Summary

Fix T81537

In very rare cases, when face_uvidx is larger than len(verts_tex),
it will raise an Exception that makes import failed. So I add
an (0.0,0.0) data pair to make the function run well.

Diff Detail

Event Timeline

hejing (campanulamediuml) requested review of this revision.Oct 8 2020, 4:43 PM
hejing (campanulamediuml) created this revision.

Shouldn't the exporter fix it? Does the spec [1] allow for (any) index to be greater than total coordinates written ?

https://wikipedia.org/wiki/Wavefront_.obj_file#External_links

Ankit Meel (ankitm) retitled this revision from Solve an "index out of range" Bug to Fix T81537: UV index greater than total UV coordinates .Oct 8 2020, 5:27 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
This comment was removed by hejing (campanulamediuml).

wait, I know what happen now...
my obj file hide the vt 0.0, 0.0

so maybe this update could be a patch about compatibility :)

As discussed in the bug report, exporter should be fixed.

As discussed in the bug report, exporter should be fixed.

ok and you can close this upodate