Skip to content

Commit

Permalink
Actually search the part's nodes for non-top/bottom
Browse files Browse the repository at this point in the history
It does help if one fetches the node before testing it.
  • Loading branch information
taniwha committed Apr 7, 2020
1 parent f460bb8 commit c06a271
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/DisposablePad/DisposablePad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ AttachNode FindNode (Part p)
}
}
for (int i = 0; i < p.attachNodes.Count; i++) {
node = p.attachNodes[i];
if (node.attachedPart == null) {
return node;
}
Expand Down

0 comments on commit c06a271

Please sign in to comment.