Fixed GetNodeOrNull<T>
GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
(cherry picked from commit f595486076
)
This commit is contained in:
parent
6cb4ec2289
commit
04cfcb3ba0
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ namespace Godot
|
||||||
|
|
||||||
public T GetNodeOrNull<T>(NodePath path) where T : class
|
public T GetNodeOrNull<T>(NodePath path) where T : class
|
||||||
{
|
{
|
||||||
return GetNode(path) as T;
|
return GetNodeOrNull(path) as T;
|
||||||
}
|
}
|
||||||
|
|
||||||
public T GetChild<T>(int idx) where T : class
|
public T GetChild<T>(int idx) where T : class
|
||||||
|
|
Loading…
Reference in a new issue