Bladeren bron

Fix: Node Group interfaces getting mangled

Joseph Brandenburg 6 maanden geleden
bovenliggende
commit
3e68bbdfc0
1 gewijzigde bestanden met toevoegingen van 7 en 4 verwijderingen
  1. 7 4
      i_o.py

+ 7 - 4
i_o.py

@@ -487,10 +487,13 @@ def do_import(data, context):
                                     index,
                                     )
         
-        # Go BACK through and set the index/position now that all items exist.
-        interface_sockets.sort(key=lambda a : a[1])
-        for (socket, position) in interface_sockets:
-            tree.interface.move(socket, position)
+        # BUG this was screwing up the order of things
+        # so I wan tot fix it and re-enable it
+        if False:
+            # Go BACK through and set the index/position now that all items exist.
+            interface_sockets.sort(key=lambda a : a[1])
+            for (socket, position) in interface_sockets:
+                tree.interface.move(socket, position)
         
     # Now go and do nodes and links
     for tree_name, tree_data in data.items():