diff --git a/code/ACLoader.cpp b/code/ACLoader.cpp index 56a658045..2f042eeba 100644 --- a/code/ACLoader.cpp +++ b/code/ACLoader.cpp @@ -396,7 +396,7 @@ void AC3DImporter::ConvertMaterial(const Object& object, aiUVTransform transform; transform.mScaling = object.texRepeat; transform.mTranslation = object.texOffset; - matDest.AddProperty((float*)&transform,sizeof(aiUVTransform), + matDest.AddProperty((float*)&transform,sizeof(aiUVTransform)/sizeof(float), AI_MATKEY_UVTRANSFORM_DIFFUSE(0)); } }