|
@@ -641,7 +641,7 @@ void SMDImporter::ComputeAbsoluteBoneTransformations()
|
|
bone.mOffsetMatrix.Inverse();
|
|
bone.mOffsetMatrix.Inverse();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+\
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
// create output materials
|
|
// create output materials
|
|
void SMDImporter::CreateOutputMaterials()
|
|
void SMDImporter::CreateOutputMaterials()
|
|
@@ -660,7 +660,7 @@ void SMDImporter::CreateOutputMaterials()
|
|
|
|
|
|
if (aszTextures[iMat].length())
|
|
if (aszTextures[iMat].length())
|
|
{
|
|
{
|
|
- ::strncpy(szName.data, aszTextures[iMat].c_str(),MAXLEN );
|
|
|
|
|
|
+ ::strncpy(szName.data, aszTextures[iMat].c_str(),MAXLEN-1);
|
|
szName.length = aszTextures[iMat].length();
|
|
szName.length = aszTextures[iMat].length();
|
|
pcMat->AddProperty(&szName,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
|
pcMat->AddProperty(&szName,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
|
}
|
|
}
|