فهرست منبع

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 11 ماه پیش
والد
کامیت
4825582f0f
1فایلهای تغییر یافته به همراه0 افزوده شده و 14 حذف شده
  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'''