Update node_base.py
Use an OrderedDict instead of a dict for ports in NodeItem, so that the order of ports in the UI is consistent.
#!/usr/bin/python
+from collections import OrderedDict
from .node_abstract import AbstractNodeItem
from .node_text_item import NodeTextItem
from .port import PortItem, CustomPortItem
@@ -130,8 +131,8 @@ class NodeItem(AbstractNodeItem):
self._icon_item.setTransformationMode(QtCore.Qt.SmoothTransformation)
self._text_item = NodeTextItem(self.name, self)
self._x_item = XDisabledItem(self, 'DISABLED')
- self._input_items = {}
- self._output_items = {}
+ self._input_items = OrderedDict()
+ self._output_items = OrderedDict()
self._widgets = {}
self._proxy_mode = False
self._proxy_mode_threshold = 70
