From f0d805d96f0eeef3b6a5526e3c5eb2604295b589 Mon Sep 17 00:00:00 2001 From: Mikhail Tishin Date: Sat, 17 Feb 2024 18:51:35 +0300 Subject: [PATCH] Make SceneTree macro path optional --- Sources/SwiftGodot/MacroDefs.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftGodot/MacroDefs.swift b/Sources/SwiftGodot/MacroDefs.swift index ff1b12c94..33b2edd5a 100644 --- a/Sources/SwiftGodot/MacroDefs.swift +++ b/Sources/SwiftGodot/MacroDefs.swift @@ -180,7 +180,7 @@ public macro NativeHandleDiscarding() = #externalMacro(module: "SwiftGodotMacroL /// /// - Important: This property will become a computed property, and it cannot be reassigned later. @attached(accessor) -public macro SceneTree(path: String) = #externalMacro(module: "SwiftGodotMacroLibrary", type: "SceneTreeMacro") +public macro SceneTree(path: String? = nil) = #externalMacro(module: "SwiftGodotMacroLibrary", type: "SceneTreeMacro") /// Defines a Godot signal on a class. ///