diff options
Diffstat (limited to 'modules/add_utils.py')
-rw-r--r-- | modules/add_utils.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/add_utils.py b/modules/add_utils.py index 27fc9d6d..39aed56d 100644 --- a/modules/add_utils.py +++ b/modules/add_utils.py @@ -112,16 +112,12 @@ def add_object_data(context, obdata, operator=None): return base -def flatten_vector_list(list): +def flatten_vector_list(ls): '''flatten a list of vetcors to use in foreach_set and the like''' - if not list: + if not ls: return None - result = [] - for vec in list: - result.extend([i for i in vec]) - - return result + return [i for v in ls for i in v] def list_to_vector_list(list, dimension=3): |