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-9d2fd5bffc1fpull/1/head
parent
0aeff6179b
commit
84f576c177
|
@ -396,8 +396,7 @@ void AC3DImporter::ConvertMaterial(const Object& object,
|
||||||
aiUVTransform transform;
|
aiUVTransform transform;
|
||||||
transform.mScaling = object.texRepeat;
|
transform.mScaling = object.texRepeat;
|
||||||
transform.mTranslation = object.texOffset;
|
transform.mTranslation = object.texOffset;
|
||||||
matDest.AddProperty<float>((float*)&transform,sizeof(aiUVTransform)/sizeof(float),
|
matDest.AddProperty(&transform,1,AI_MATKEY_UVTRANSFORM_DIFFUSE(0));
|
||||||
AI_MATKEY_UVTRANSFORM_DIFFUSE(0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue