This commit is contained in:
Razmoth
2023-08-21 21:45:57 +04:00
parent 6da2387c8c
commit 0bd3fa6db2
48 changed files with 967 additions and 510 deletions

View File

@@ -16,6 +16,7 @@ namespace AssetStudio.FbxInterop
public FbxExporterContext()
{
Fbx.QuaternionToEuler(Quaternion.Zero); // workaround to init dll
_pContext = AsFbxCreateContext();
_frameToNode = new Dictionary<ImportedFrame, IntPtr>();
_createdMaterials = new List<KeyValuePair<string, IntPtr>>();
@@ -554,7 +555,7 @@ namespace AssetStudio.FbxInterop
foreach (var rotation in track.Rotations)
{
var value = rotation.value;
var value = Fbx.QuaternionToEuler(rotation.value);
AsFbxAnimAddRotationKey(pAnimContext, rotation.time, value.X, value.Y, value.Z);
}