AssbinExporter: Fix strict aliasing violation
parent
f4a0ab81b1
commit
046c229e48
|
@ -650,9 +650,9 @@ inline size_t WriteArray(IOStream * stream, const T* in, unsigned int size)
|
||||||
Write<float>(&chunk,l->mAttenuationQuadratic);
|
Write<float>(&chunk,l->mAttenuationQuadratic);
|
||||||
}
|
}
|
||||||
|
|
||||||
Write<aiVector3D>(&chunk,(const aiVector3D&)l->mColorDiffuse);
|
Write<aiColor3D>(&chunk,l->mColorDiffuse);
|
||||||
Write<aiVector3D>(&chunk,(const aiVector3D&)l->mColorSpecular);
|
Write<aiColor3D>(&chunk,l->mColorSpecular);
|
||||||
Write<aiVector3D>(&chunk,(const aiVector3D&)l->mColorAmbient);
|
Write<aiColor3D>(&chunk,l->mColorAmbient);
|
||||||
|
|
||||||
if (l->mType == aiLightSource_SPOT) {
|
if (l->mType == aiLightSource_SPOT) {
|
||||||
Write<float>(&chunk,l->mAngleInnerCone);
|
Write<float>(&chunk,l->mAngleInnerCone);
|
||||||
|
|
Loading…
Reference in New Issue