diff --git a/nodes/list_mutators/unique_items.py b/nodes/list_mutators/unique_items.py index b76bee29e9266f36b8cc351e554b08ce00c23597..814123d896bd5599c7d4238c8775be23fe6d70db 100644 --- a/nodes/list_mutators/unique_items.py +++ b/nodes/list_mutators/unique_items.py @@ -18,6 +18,7 @@ import bpy import numpy as np +from mathutils import Matrix, Quaternion from sverchok.node_tree import SverchCustomTreeNode from sverchok.data_structure import updateNode, changable_sockets @@ -31,7 +32,7 @@ def recursive_unique_items(data, level, linked_outputs, output_numpy): iterable = isinstance(data[0], (list, tuple, np.ndarray)) if not level or not iterable: np_data = np.array(data) - if np_data.dtype == object: + if np_data.dtype == object or isinstance(data[0], (Matrix, Quaternion)): unique, unique_indices, unique_inverse, unique_count = python_unique(data) else: unique, unique_indices, unique_inverse, unique_count = numpy_unique(data, linked_outputs, output_numpy)