Fix C# API assembly build errors in generics
This commit is contained in:
@@ -2,9 +2,9 @@ namespace Godot
|
||||
{
|
||||
public static partial class ResourceLoader
|
||||
{
|
||||
public static T Load<T>(string path) where T : Godot.Resource
|
||||
public static T Load<T>(string path) where T : class
|
||||
{
|
||||
return (T) Load(path);
|
||||
return (T)(object)Load(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user