Fix C# structures memory packing to match C++ better

#2709
This commit is contained in:
Wojtek Figat
2024-09-19 19:35:45 +02:00
parent ba701eb4d3
commit 075c224022
2 changed files with 3 additions and 3 deletions

View File

@@ -465,7 +465,7 @@ namespace FlaxEngine
/// <summary>
/// A single keyframe that can be injected into linear curve.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct Keyframe : IComparable, IComparable<Keyframe>
{
/// <summary>
@@ -720,7 +720,7 @@ namespace FlaxEngine
/// <summary>
/// A single keyframe that can be injected into Bezier curve.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct Keyframe : IComparable, IComparable<Keyframe>
{
/// <summary>