Quellcode durchsuchen

`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 <[email protected]>
Julian Knodt vor 1 Jahr
Ursprung
Commit
c877a15140
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      code/AssetLib/FBX/FBXExporter.cpp

+ 1 - 1
code/AssetLib/FBX/FBXExporter.cpp

@@ -1748,7 +1748,7 @@ void FBXExporter::WriteObjects ()
         int64_t blendshape_uid = generate_uid();
         mesh_uids.push_back(blendshape_uid);
         bsnode.AddProperty(blendshape_uid);
-        bsnode.AddProperty(blendshape_name + FBX::SEPARATOR + "Blendshape");
+        bsnode.AddProperty(blendshape_name + FBX::SEPARATOR + "Geometry");
         bsnode.AddProperty("Shape");
         bsnode.AddChild("Version", int32_t(100));
         bsnode.Begin(outstream, binary, indent);