Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7192f5216This file is pinned to the selected release. Download the original to open it in your design tool.
using Godot;
namespace OpenScadGraphEditor.Nodes
{
public static class ScadNodeCommentExt
{
public static bool TryGetComment(this ScadNode node, out string comment)
{
return node.TryGetCustomAttribute("comment", out comment);
}
public static void SetComment(this ScadNode node, string comment)
{
if (comment.Empty())
{
node.UnsetCustomAttribute("comment");
}
else
{
node.SetCustomAttribute("comment", comment);
}
}
}
}