Skip to content

Commit a10534b

Browse files
committed
Reverted optimization for sync ports
1 parent b520e55 commit a10534b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/BaseNodeView.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -918,19 +918,6 @@ void SyncPortOrder(IEnumerable< NodePort > ports, IEnumerable< PortView > portVi
918918
var portViewList = portViews.ToList();
919919
var portsList = ports.ToList();
920920

921-
if (portViewList.Count == portsList.Count)
922-
{
923-
bool needReorder = false;
924-
925-
// Check if we need to re-order the ports:
926-
for (int i = 0; i < portsList.Count; i++)
927-
if (portsList[i].portData.identifier != portViewList[i].portData.identifier)
928-
needReorder = true;
929-
930-
if (!needReorder)
931-
return;
932-
}
933-
934921
// Re-order the port views to match the ports order in case a custom behavior re-ordered the ports
935922
for (int i = 0; i < portsList.Count; i++)
936923
{

0 commit comments

Comments
 (0)