Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using Godot;
using OpenScadGraphEditor.Library;
using OpenScadGraphEditor.Nodes;
namespace OpenScadGraphEditor.Refactorings
{
public class ChangeNodePositionRefactoring :NodeRefactoring
{
private readonly Vector2 _newPosition;
public ChangeNodePositionRefactoring(ScadGraph graph, ScadNode node, Vector2 newPosition) : base(graph, node)
{
_newPosition = newPosition;
}
public override void PerformRefactoring(RefactoringContext context)
{
Node.Offset = _newPosition;
}
}
}7951eb9aaThis file is pinned to the selected release. Download the original to open it in your design tool.