Explorar el Código

Fix: Ensure flush_links() also sorts them

Joseph Brandenburg hace 6 meses
padre
commit
c590967e74
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      base_definitions.py

+ 1 - 0
base_definitions.py

@@ -900,6 +900,7 @@ class NodeSocket:
     def flush_links(self):
         """ Removes dead links from this socket."""
         self.links = [l for l in self.links if l.is_alive]
+        self.links.sort(key=lambda a : -a.multi_input_sort_id)
         self.is_linked = bool(self.links)
         
     @property