Bläddra i källkod

Add sane defaults for TransformDTO

habeebweeb 3 år sedan
förälder
incheckning
994036b7d0

+ 3 - 3
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Serialization/SimpleSerializers/TransformDTOSerializer.cs

@@ -37,9 +37,9 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
     {
         public Vector3 Position { get; init; }
         public Vector3 LocalPosition { get; init; }
-        public Quaternion Rotation { get; init; }
-        public Quaternion LocalRotation { get; init; }
-        public Vector3 LocalScale { get; init; }
+        public Quaternion Rotation { get; init; } = Quaternion.identity;
+        public Quaternion LocalRotation { get; init; } = Quaternion.identity;
+        public Vector3 LocalScale { get; init; } = Vector3.one;
 
         public TransformDTO() { }