Merge branch 'master' into issue_2662
commit
2757297b4f
|
@ -1289,7 +1289,7 @@ void FBXExporter::WriteObjects ()
|
|||
|
||||
for(unsigned int lr = 1; lr < m->GetNumUVChannels(); ++ lr)
|
||||
{
|
||||
FBX::Node layerExtra("Layer", int32_t(1));
|
||||
FBX::Node layerExtra("Layer", int32_t(lr));
|
||||
layerExtra.AddChild("Version", int32_t(100));
|
||||
FBX::Node leExtra("LayerElement");
|
||||
leExtra.AddChild("Type", "LayerElementUV");
|
||||
|
|
|
@ -444,7 +444,6 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
|
|||
"\" does not match the vertex count");
|
||||
continue;
|
||||
}
|
||||
aim->mColors[c] = new aiColor4D[attr.color[c]->count];
|
||||
attr.color[c]->ExtractData(aim->mColors[c]);
|
||||
}
|
||||
for (size_t tc = 0; tc < attr.texcoord.size() && tc < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++tc) {
|
||||
|
@ -1037,7 +1036,7 @@ aiNodeAnim* CreateNodeAnim(glTF2::Asset& r, Node& node, AnimationSamplers& sampl
|
|||
delete[] values;
|
||||
} else if (node.translation.isPresent) {
|
||||
anim->mNumPositionKeys = 1;
|
||||
anim->mPositionKeys = new aiVectorKey();
|
||||
anim->mPositionKeys = new aiVectorKey[anim->mNumPositionKeys];
|
||||
anim->mPositionKeys->mTime = 0.f;
|
||||
anim->mPositionKeys->mValue.x = node.translation.value[0];
|
||||
anim->mPositionKeys->mValue.y = node.translation.value[1];
|
||||
|
|
Loading…
Reference in New Issue