extra layer for multi uv sets

pull/2572/head
ywang 2019-07-25 13:14:54 -07:00
parent d7773dcfba
commit 57a56b7b1d
1 changed files with 10 additions and 0 deletions

View File

@ -1219,6 +1219,16 @@ void FBXExporter::WriteObjects ()
layer.AddChild(le); layer.AddChild(le);
layer.Dump(outstream, binary, indent); layer.Dump(outstream, binary, indent);
for(unsigned int lr = 1; lr < m->GetNumUVChannels(); ++ lr)
{
FBX::Node layerExtra("Layer", int32_t(1));
layerExtra.AddChild("Version", int32_t(100));
FBX::Node leExtra("LayerElement");
leExtra.AddChild("Type", "LayerElementUV");
leExtra.AddChild("TypedIndex", int32_t(lr));
layerExtra.AddChild(leExtra);
layerExtra.Dump(outstream, binary, indent);
}
// finish the node record // finish the node record
indent = 1; indent = 1;
n.End(outstream, binary, indent, true); n.End(outstream, binary, indent, true);