Selaa lähdekoodia

Fix: Empty Matrix Socket in Node Group causes error

This bug was caused because the __init__ of the InputMatrix node expected a ui node
to copy data from - even though it was an autogenerated node from a node group
input. I fixed it by removing that section entirely. I don't know why it was there in the
first place.

tested to ensure the matrix node still functions as expected.
Joseph Brandenburg 7 kuukautta sitten
vanhempi
commit
4825582f0f
1 muutettua tiedostoa jossa 0 lisäystä ja 14 poistoa
  1. 0 14
      misc_containers.py

+ 0 - 14
misc_containers.py

@@ -179,20 +179,6 @@ class InputMatrix(MantisNode):
         self.node_type = 'UTILITY'
         self.prepared = True
         self.executed = True
-        #
-        from mathutils import Matrix
-        from .utilities import get_node_prototype
-        # TODO: this should probably be in fill_parameters
-        node_prototype = get_node_prototype(self.signature, self.base_tree)
-        
-        matrix = ( node_prototype.first_row[ 0], node_prototype.first_row[ 1], node_prototype.first_row[ 2], node_prototype.first_row[ 3],
-                   node_prototype.second_row[0], node_prototype.second_row[1], node_prototype.second_row[2], node_prototype.second_row[3],
-                   node_prototype.third_row[ 0], node_prototype.third_row[ 1], node_prototype.third_row[ 2], node_prototype.third_row[ 3],
-                   node_prototype.fourth_row[0], node_prototype.fourth_row[1], node_prototype.fourth_row[2], node_prototype.fourth_row[3], )
-        self.parameters["Matrix"] = Matrix([matrix[0:4], matrix[4:8], matrix[8:12], matrix[12:16]])
-
-    def fill_parameters(self, prototype=None):
-        return
 
 class UtilityMatrixFromCurve(MantisNode):
     '''Get a matrix from a curve'''