Loading files
using JetBrains.Annotations;
using OpenScadGraphEditor.Library;
using OpenScadGraphEditor.Refactorings;
namespace OpenScadGraphEditor.Nodes.ForLoop
{
/// <summary>
/// Refactoring to toggle the intersect mode for the for loop.
/// </summary>
[UsedImplicitly]
public class ToggleIntersectModeRefactoring : NodeRefactoring
{
public ToggleIntersectModeRefactoring(ScadGraph holder, ForLoopStart node) : base(holder, node)
{
}
public override void PerformRefactoring(RefactoringContext context)
{
var forLoopStart = (ForLoopStart)Node;
// this has no impact on connection it just changes the rendered text, so this is all we need to do
forLoopStart.IntersectMode = !forLoopStart.IntersectMode;
}
}
}7192f5216This file is pinned to the selected release. Download the original to open it in your design tool.