Преглед изворни кода

Fix: correct default value type for vectors

Joseph Brandenburg пре 3 недеља
родитељ
комит
b0e073dd51
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      utilities.py

+ 2 - 2
utilities.py

@@ -313,9 +313,9 @@ def relink_socket_map_add_socket(node, socket_collection, item,  in_out=None,):
             if val_type is bool: default_value = item.default_bool
             if val_type is int: default_value = item.default_int
             if val_type is float: default_value = item.default_float
-            if val_type is Vector: default_value = item.default_float
+            if val_type is Vector: default_value = item.default_vector
             if val_type is str: default_value = item.default_string
-            if val_type is bpy_prop_array: default_value = item.default_float
+            if val_type is bpy_prop_array: default_value = item.default_bool_vector
             s.default_value = default_value
 
     if read_schema_type(item) == 'Array': s.display_shape = 'SQUARE_DOT'