Skip to content

Commit e7d5911

Browse files
Fixed poses not being saved correctly for some .NET versions.
1 parent ca46607 commit e7d5911

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Cinematic/Serializers/BonesSerializer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ public CachedBonesTransform(Vector3 position, Vector3 angles, Vector3 scale)
7575
this.scale = scale;
7676
}
7777

78-
public readonly Vector3 position;
79-
public readonly Vector3 angles;
80-
public readonly Vector3 scale;
78+
// They cant be read-only because it causes problems with XML serialization in older versions of .NET
79+
public Vector3 position { get; set; }
80+
public Vector3 angles { get; set; }
81+
public Vector3 scale { get; set; }
8182

8283
public void CopyToTransform(Transform transform){
8384
transform.localPosition = position;

0 commit comments

Comments
 (0)