diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-04-01 14:24:57 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-04-01 14:24:57 +0200 |
| commit | 9af331260bf34cd2f7578e863367dec69b32fa68 (patch) | |
| tree | 47b91a2e1a71bcc8e86847faeacb35bff53bad19 /vke/src/ExtensionMethods.cs | |
| parent | e4ff67fb5f3a492809dcac8b09b8b4b0ba288044 (diff) | |
model
Diffstat (limited to 'vke/src/ExtensionMethods.cs')
| -rw-r--r-- | vke/src/ExtensionMethods.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vke/src/ExtensionMethods.cs b/vke/src/ExtensionMethods.cs index 09a703a..dd10125 100644 --- a/vke/src/ExtensionMethods.cs +++ b/vke/src/ExtensionMethods.cs @@ -31,7 +31,7 @@ using System.Runtime.InteropServices; namespace VKE { public static class ExtensionMethods { - public static Dictionary<object, GCHandle> handles; + public static Dictionary<object, GCHandle> handles = new Dictionary<object, GCHandle>(); public static Vector3 Transform (this Vector3 v, ref Matrix4x4 mat, bool translate = false) { Vector4 v4 = Vector4.Transform (new Vector4 (v, translate ? 1f : 0f), mat); return new Vector3 (v4.X, v4.Y, v4.Z); |