From 260f6c257aff52fc22e6d31ea256f7dbf7a5aaf6 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Mon, 16 Jan 2017 18:13:16 +0300 Subject: [PATCH] TopoSeries: fix duplicate link detection --- lattice2TopoSeries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lattice2TopoSeries.py b/lattice2TopoSeries.py index 78b75a5..51e6f92 100644 --- a/lattice2TopoSeries.py +++ b/lattice2TopoSeries.py @@ -45,7 +45,7 @@ def findAllLinksTo(doc_obj): expression links.""" ret = [] doc = doc_obj.Document - for obj in doc_obj.InList: + for obj in set(doc_obj.InList): # InList sometimes reports same object multiple times. Wrapping with set() removes the duplicates. for prop_name in obj.PropertiesList: typ = obj.getTypeIdOfProperty(prop_name) if typ == 'App::PropertyLink':