SahelFllh / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

missing input_set leaves setIndex uninitialized #164

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have a .dae with 
<bind_vertex_input semantic="CHANNEL1" input_semantic="TEXCOORD" />
2. parse the file
3. read getSetIndex() of COLLADAFW::TextureCoordinateBinding

What is the expected output? What do you see instead?
A value that communicates there was no input_set given.

What version of the product are you using? On what operating system?
r839

Please provide any additional information below.
Found through Blender bug #24747: 
http://projects.blender.org/tracker/?func=detail&aid=27474&group_id=9&atid=498

If possible, please provide a sample file that can be used to reproduce the
problem.
See the linked bug report.

I attach two small patches that propose setting the index to ~0, which can be 
checked in the client code for.

Original issue reported on code.google.com by nathan.letwory on 20 Jun 2011 at 9:15

Attachments: