use size in order to be compatible with float and double

kimkulling/dd_missing_pretransform_step_issue-5276
Sébastien Loriot 2023-10-10 12:44:34 -07:00 committed by Kim Kulling
parent 1169d3bc8c
commit c44e3427aa
1 changed files with 2 additions and 2 deletions

View File

@ -575,8 +575,8 @@ void SetupMapping(aiMaterial *mat, aiTextureMapping mode, const aiVector3D &axis
m->mSemantic = prop->mSemantic; m->mSemantic = prop->mSemantic;
m->mType = aiPTI_Float; m->mType = aiPTI_Float;
m->mDataLength = 12; m->mDataLength = sizeof(aiVector3D);
m->mData = new char[12]; m->mData = new char[m->mDataLength];
*((aiVector3D *)m->mData) = axis; *((aiVector3D *)m->mData) = axis;
p.push_back(m); p.push_back(m);
} }