`Blendshape`->`Geometry` in FBX Export (#5419)
When loading a mesh exported from assimp into Blender, it warns that it has an incorrect class. While debugging, I traced it back to this being `Blendshape` where `Geometry` was expected. This is likely because this node describes a `Geometry`, which is used as a blendshape. I'm not sure if any other DCC tools or places to import it expect `Blendshape` instead (i.e. was this code ever tested?), but it fixes its use in Blender. Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>pull/5397/head
parent
1164844ce4
commit
c877a15140
|
@ -1748,7 +1748,7 @@ void FBXExporter::WriteObjects ()
|
||||||
int64_t blendshape_uid = generate_uid();
|
int64_t blendshape_uid = generate_uid();
|
||||||
mesh_uids.push_back(blendshape_uid);
|
mesh_uids.push_back(blendshape_uid);
|
||||||
bsnode.AddProperty(blendshape_uid);
|
bsnode.AddProperty(blendshape_uid);
|
||||||
bsnode.AddProperty(blendshape_name + FBX::SEPARATOR + "Blendshape");
|
bsnode.AddProperty(blendshape_name + FBX::SEPARATOR + "Geometry");
|
||||||
bsnode.AddProperty("Shape");
|
bsnode.AddProperty("Shape");
|
||||||
bsnode.AddChild("Version", int32_t(100));
|
bsnode.AddChild("Version", int32_t(100));
|
||||||
bsnode.Begin(outstream, binary, indent);
|
bsnode.Begin(outstream, binary, indent);
|
||||||
|
|
Loading…
Reference in New Issue