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-9d2fd5bffc1fpull/1/head
parent
4f50c04347
commit
0aeff6179b
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue