Bläddra i källkod

loosen generic guard on method for ResourceLoader

For more details see #22658
zochris 7 år sedan
förälder
incheckning
4a11864968
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      modules/mono/glue/Managed/Files/GD.cs

+ 1 - 1
modules/mono/glue/Managed/Files/GD.cs

@@ -65,7 +65,7 @@ namespace Godot
             return ResourceLoader.Load(path);
             return ResourceLoader.Load(path);
         }
         }
 
 
-        public static T Load<T>(string path) where T : Godot.Resource
+        public static T Load<T>(string path) where T : class
         {
         {
             return (T) ResourceLoader.Load(path);
             return (T) ResourceLoader.Load(path);
         }
         }