Explorar o código

Fixed a couple of issues with the struct refactor in the previous commit

BearishSun %!s(int64=10) %!d(string=hai) anos
pai
achega
f08b104df3
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      MBansheeEditor/Scene/HandleDrawing.cs
  2. 2 2
      MBansheeEngine/NativeCamera.cs

+ 1 - 1
MBansheeEditor/Scene/HandleDrawing.cs

@@ -14,7 +14,7 @@ namespace BansheeEditor
         /// </summary>
         /// </summary>
         public static Color Color
         public static Color Color
         {
         {
-            set { Internal_SetColor(value); }
+            set { Internal_SetColor(ref value); }
         }
         }
 
 
         /// <summary>
         /// <summary>

+ 2 - 2
MBansheeEngine/NativeCamera.cs

@@ -58,7 +58,7 @@ namespace BansheeEngine
         internal Degree fieldOfView
         internal Degree fieldOfView
         {
         {
             get { Degree value; Internal_GetFieldOfView(mCachedPtr, out value); return value; }
             get { Degree value; Internal_GetFieldOfView(mCachedPtr, out value); return value; }
-            set { Internal_SetFieldOfView(mCachedPtr, value); }
+            set { Internal_SetFieldOfView(mCachedPtr, ref value); }
         }
         }
 
 
         internal Rect2 viewportRect
         internal Rect2 viewportRect
@@ -351,7 +351,7 @@ namespace BansheeEngine
         [MethodImpl(MethodImplOptions.InternalCall)]
         [MethodImpl(MethodImplOptions.InternalCall)]
         private static extern void Internal_GetFieldOfView(IntPtr instance, out Degree value);
         private static extern void Internal_GetFieldOfView(IntPtr instance, out Degree value);
         [MethodImpl(MethodImplOptions.InternalCall)]
         [MethodImpl(MethodImplOptions.InternalCall)]
-        private static extern void Internal_SetFieldOfView(IntPtr instance, Degree value);
+        private static extern void Internal_SetFieldOfView(IntPtr instance, ref Degree value);
 
 
         [MethodImpl(MethodImplOptions.InternalCall)]
         [MethodImpl(MethodImplOptions.InternalCall)]
         private static extern void Internal_GetViewportRect(IntPtr instance, out Rect2 value);
         private static extern void Internal_GetViewportRect(IntPtr instance, out Rect2 value);