Skip to content

Commit

Permalink
Make SceneTree macro path optional (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
tishin authored Feb 18, 2024
1 parent e0c917c commit adc92a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftGodot/MacroDefs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit adc92a4

Please sign in to comment.