Fix AC loader accidentially pulling in undefined contents right after the aiUVTransform it tries to add as material property.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@671 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-04-11 22:56:54 +00:00
parent 4f50c04347
commit 0aeff6179b
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void AC3DImporter::ConvertMaterial(const Object& object,
aiUVTransform transform;
transform.mScaling = object.texRepeat;
transform.mTranslation = object.texOffset;
matDest.AddProperty<float>((float*)&transform,sizeof(aiUVTransform),
matDest.AddProperty<float>((float*)&transform,sizeof(aiUVTransform)/sizeof(float),
AI_MATKEY_UVTRANSFORM_DIFFUSE(0));
}
}