Skip to content

Commit

Permalink
Merge pull request #10 from Hopper262/pr-struct-quat
Browse files Browse the repository at this point in the history
Write Quat struct type
  • Loading branch information
SparkyTD authored Aug 14, 2022
2 parents 415e41d + 89d5c03 commit 720333a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UnrealEngine.Gvas/FProperties/FStructProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ internal override void Write(BinaryWriter writer, bool skipHeader)
writer.Write((Fields["Yaw"] as FFloatProperty)!.Value);
writer.Write((Fields["Roll"] as FFloatProperty)!.Value);
}
else if (TypeName == "Vector")
else if (TypeName == "Quat")
{
writer.Write((Fields["X"] as FFloatProperty)!.Value);
writer.Write((Fields["Y"] as FFloatProperty)!.Value);
writer.Write((Fields["Z"] as FFloatProperty)!.Value);
writer.Write((Fields["W"] as FFloatProperty)!.Value);
}
else if (TypeName == "DateTime")
writer.Write((Fields["Ticks"] as FInt64Property)!.Value);
Expand Down

0 comments on commit 720333a

Please sign in to comment.