From 8581a75f9c9c66389d49ddb9db6e9e1dcfcee098 Mon Sep 17 00:00:00 2001 From: Derek Schmidt Date: Sat, 6 Nov 2021 14:52:05 -0700 Subject: [PATCH] Correct depricated (and now removed) import --- blender/arm/node_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blender/arm/node_utils.py b/blender/arm/node_utils.py index 00c2e4c1..3c20a1f7 100755 --- a/blender/arm/node_utils.py +++ b/blender/arm/node_utils.py @@ -1,4 +1,4 @@ -import collections +import collections.abc from typing import Any, Generator, Type, Union import bpy @@ -149,7 +149,7 @@ def haxe_format_socket_val(socket_val: Any, array_outer_brackets=True) -> str: elif isinstance(socket_val, str): socket_val = '"{:s}"'.format(socket_val.replace('"', '\\"')) - elif isinstance(socket_val, (collections.Sequence, bpy.types.bpy_prop_array, mathutils.Color, mathutils.Euler, mathutils.Vector)): + elif isinstance(socket_val, (collections.abc.Sequence, bpy.types.bpy_prop_array, mathutils.Color, mathutils.Euler, mathutils.Vector)): socket_val = ','.join(haxe_format_socket_val(v, array_outer_brackets=True) for v in socket_val) if array_outer_brackets: socket_val = f'[{socket_val}]'