if (semantic.compare("VERTEX") == 0)
{
vertexOffset = Offset;
+
+ const xmlNodePtr mesh = root->parent;
+ xmlNodePtr vertices = Tools::FindFirst(mesh->children, "vertices", false);
+ if (vertices != null)
+ {
+ xmlNodePtr input = Tools::FindFirst(vertices->children, "input", false);
+ while(input)
+ {
+ std::string semantic = Tools::GetAttrValueAsString(input, "semantic");
+
+ if (semantic.compare("NORMAL") == 0)
+ {
+ normalOffset = vertexOffset;
+ }
+
+ if (semantic.compare("TEXCOORD") == 0)
+ {
+ texCoordOffset = vertexOffset;
+ }
+
+ input = Tools::FindFirst(input->next, "input", false);
+ }
+ }
}
if (semantic.compare("NORMAL") == 0)