From caa167718172899022e53f6e5b07fa057c5d346a Mon Sep 17 00:00:00 2001 From: htlcnn Date: Mon, 9 Nov 2020 16:23:33 +0700 Subject: [PATCH] rearrange logic --- src/ifcsverchok/nodes/ifc/by_type.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcsverchok/nodes/ifc/by_type.py b/src/ifcsverchok/nodes/ifc/by_type.py index 92b63ff085..718bfe8003 100644 --- a/src/ifcsverchok/nodes/ifc/by_type.py +++ b/src/ifcsverchok/nodes/ifc/by_type.py @@ -29,10 +29,10 @@ class SvIfcByType(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfc super().process() def process_ifc(self, file, ifc_product, ifc_class, custom_ifc_class): - if not custom_ifc_class: - self.outputs["entity"].sv_set([file.by_type(ifc_class)]) - else: + if custom_ifc_class: self.outputs["entity"].sv_set([file.by_type(custom_ifc_class)]) + else: + self.outputs["entity"].sv_set([file.by_type(ifc_class)]) def register():