mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Script editor - Added auto-arrange button
This commit is contained in:
1 parent
3ecf0bed5a
commit
65b8b377ec
5 files changed
+89
-7
No files matched your search
@@ -93,6 +93,7 @@
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=stores_005Cregistrations/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=utilities/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=visualscripting/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=visualscripting_005Cextensions/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=visualscripting_005Cinterfaces/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=visualscripting_005Cnodes/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=visualscripting_005Cpins/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||
@@ -19,7 +19,7 @@ public static class NodeScriptExtension
|
||||
levels[currentLevelNode] = 0; // DarthAffe 13.09.2022: Init-exit nodes as zero
|
||||
|
||||
int currentLevel = 1;
|
||||
while (currentLevelNodes.Count > 0)
|
||||
while (currentLevelNodes.Count > 0 && currentLevel < 1000)
|
||||
{
|
||||
List<INode> nextLevelNodes = currentLevelNodes.SelectMany(node => node.Pins
|
||||
.Where(x => x.Direction == PinDirection.Input)
|
||||
|
||||
Reference in new issue
Block a user