|
@@ -244,7 +244,7 @@ void LoadMesh(const String& inputFileName, bool generateTangents, bool splitSubM
|
|
|
if (!meshFile_->Load(meshFileSource))
|
|
if (!meshFile_->Load(meshFileSource))
|
|
|
ErrorExit("Could not load input file " + inputFileName);
|
|
ErrorExit("Could not load input file " + inputFileName);
|
|
|
|
|
|
|
|
- XMLElement root = meshFile_->GetRoot();
|
|
|
|
|
|
|
+ XMLElement root = meshFile_->GetRoot("mesh");
|
|
|
XMLElement subMeshes = root.GetChild("submeshes");
|
|
XMLElement subMeshes = root.GetChild("submeshes");
|
|
|
XMLElement skeletonLink = root.GetChild("skeletonlink");
|
|
XMLElement skeletonLink = root.GetChild("skeletonlink");
|
|
|
if (root.IsNull())
|
|
if (root.IsNull())
|
|
@@ -895,7 +895,7 @@ void WriteOutput(const String& outputFileName, bool exportAnimations, bool rotat
|
|
|
dest.WriteVector3(subGeometryCenters_[i]);
|
|
dest.WriteVector3(subGeometryCenters_[i]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- XMLElement skeletonRoot = skelFile_->GetRoot("");
|
|
|
|
|
|
|
+ XMLElement skeletonRoot = skelFile_->GetRoot("skeleton");
|
|
|
if (skeletonRoot && exportAnimations)
|
|
if (skeletonRoot && exportAnimations)
|
|
|
{
|
|
{
|
|
|
// Go through animations
|
|
// Go through animations
|