Closed 31 closed 3 years ago
Fixes this:
[OnReadyPath(OrNull = true)] public Button FullyOptionalButton { get; set; }
to generate this code with the if:
if
if (FullyOptionalButtonPath != null) { FullyOptionalButton = GetNodeOrNull<global::Godot.Button>(FullyOptionalButtonPath); }
Right now it doesn't have the if. If nobody specifies the path in the editor, the code needs to avoid calling GetNodeOrNull or we'll crash.
GetNodeOrNull
Fixes this:
to generate this code with the
if
:Right now it doesn't have the
if
. If nobody specifies the path in the editor, the code needs to avoid callingGetNodeOrNull
or we'll crash.