Prechádzať zdrojové kódy

fix Transformation Constraint props_socket

this needs to be addressed properly tho
Joseph Brandenburg 2 týždňov pred
rodič
commit
722a64156e
1 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  1. 2 3
      link_nodes.py

+ 2 - 3
link_nodes.py

@@ -300,7 +300,6 @@ class LinkTransformation(MantisLinkNode):
             self.set_custom_space()
             # TODO: this can be cached I just need a custom
             #  gen_property_socket_map for this class.
-            from copy import deepcopy
             props_sockets = self.gen_property_socket_map().copy()
             # we have to fix the blender-property for scale/rotation
             # because Blender stores these separately.
@@ -329,11 +328,11 @@ class LinkTransformation(MantisLinkNode):
                 for axis in ['x', 'y', 'z']:
                     stub='to_min_'+axis
                     props_sockets[stub+to_replace]=props_sockets[stub]
-                    props_sockets[stub+from_suffix].property_name = stub+to_replace
+                    props_sockets[stub+to_replace].property_name = stub+to_replace
                     del props_sockets[stub]
                     stub='to_max_'+axis
                     props_sockets[stub+to_replace]=props_sockets[stub]
-                    props_sockets[stub+from_suffix].property_name = stub+to_replace
+                    props_sockets[stub+to_replace].property_name = stub+to_replace
                     del props_sockets[stub]
             evaluate_sockets(self, c, props_sockets)
         self.executed = True