Browse Source

Merge pull request #20706 from mysticfall/issue-20705

Add missing GetPtr() for Dictionary<> and Array<>
Ignacio Etcheverry 7 years ago
parent
commit
c4e75aa63a
2 changed files with 10 additions and 0 deletions
  1. 5 0
      modules/mono/glue/cs_files/Array.cs
  2. 5 0
      modules/mono/glue/cs_files/Dictionary.cs

+ 5 - 0
modules/mono/glue/cs_files/Array.cs

@@ -331,5 +331,10 @@ namespace Godot
         {
             return GetEnumerator();
         }
+
+        internal IntPtr GetPtr()
+        {
+            return objectArray.GetPtr();
+        }
     }
 }

+ 5 - 0
modules/mono/glue/cs_files/Dictionary.cs

@@ -397,5 +397,10 @@ namespace Godot
         {
             return GetEnumerator();
         }
+
+        internal IntPtr GetPtr()
+        {
+            return objectDict.GetPtr();
+        }
     }
 }