loosen generic guard on method for ResourceLoader
For more details see #22658
This commit is contained in:
parent
b84992e374
commit
4a11864968
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue