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