Jelajahi Sumber

fix: forgot that I saved the ID as the key of the dict

this is bad code
bad;y designed
badly written
badly organized
the person who wrote this is a bad programmer
I should fire him
Joseph Brandenburg 2 bulan lalu
induk
melakukan
3d5507663c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      i_o.py

+ 2 - 2
i_o.py

@@ -623,7 +623,7 @@ def do_import(data, context):
                                 n.is_updating=False
                         else: # IT IS NOT CLEAR but this is what throws the index error below BAD
                             for socket in n.outputs:
-                                if socket.identifier == s_val['identifier']:
+                                if socket.identifier == s_id:
                                     break
                             else: # otherwise try to get the index
                                 prRed("Getting Imported Socket by Index. Maybe there will be an error.")
@@ -651,7 +651,7 @@ def do_import(data, context):
                             # IT IS NOT CLEAR but this is what throws the index error below BAD
                             # first try to get by ID
                             for socket in n.inputs:
-                                if socket.identifier == s_val['identifier']:
+                                if socket.identifier == s_id:
                                     break
                             else: # otherwise try to get the index
                                 prRed("Getting Imported Socket by Index. Maybe there will be an error.")