From 80f6ac38795a490f41982db30a4b04eb1e03a14d Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 18 Oct 2015 14:36:35 +0300 Subject: [PATCH] CompoundFilter: temporary fix for placement problems Strangely, but when outputting the child directly when only one shape makes it through the filter, its placement is totally messed up, so it causes viewer errors. That's funny. --- CompoundFilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CompoundFilter.py b/CompoundFilter.py index b7fedc2..a257b4d 100644 --- a/CompoundFilter.py +++ b/CompoundFilter.py @@ -139,7 +139,7 @@ class _CompoundFilter: obj.Shape = markers.getNullShapeShape(scale) raise ValueError('Nothing passes through the filter') #Feeding empty compounds to FreeCAD seems to cause rendering issues, otherwise it would have been a good idea to output nothing. - if len(rst) > 1: + if len(rst) > 1 or True: obj.Shape = Part.makeCompound(rst) else: # don't make compound of one shape, output it directly obj.Shape = rst[0]