소스 검색

Fixed GetNodeOrNull<T>

GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
Fabián L 5 년 전
부모
커밋
f595486076
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs

+ 1 - 1
modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs

@@ -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