Or, even better, use the existing specialization of AddProperty for aiUVTransform.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@672 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-04-11 22:58:26 +00:00
parent 0aeff6179b
commit 84f576c177
1 changed files with 1 additions and 2 deletions

View File

@ -396,8 +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)/sizeof(float),
AI_MATKEY_UVTRANSFORM_DIFFUSE(0));
matDest.AddProperty(&transform,1,AI_MATKEY_UVTRANSFORM_DIFFUSE(0));
}
}