From 3e076eb818e2de920d6493fe2eb85423a05d7787 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Fri, 14 Oct 2022 09:53:25 -0500 Subject: [PATCH] Compatibility with build123d --- cq_editor/cq_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cq_editor/cq_utils.py b/cq_editor/cq_utils.py index e32ba6c..f52a5a4 100644 --- a/cq_editor/cq_utils.py +++ b/cq_editor/cq_utils.py @@ -23,8 +23,8 @@ def to_compound(obj : Union[cq.Workplane, List[cq.Workplane], cq.Shape, List[cq. if isinstance(obj,cq.Workplane): vals.extend(obj.vals()) - elif isinstance(obj,cq.Shape): - vals.append(obj) + elif hasattr(obj,"wrapped") and isinstance(obj.wrapped,TopoDS_Shape): + vals.append(obj.wrapped) elif isinstance(obj,list) and isinstance(obj[0],cq.Workplane): for o in obj: vals.extend(o.vals()) elif isinstance(obj,list) and isinstance(obj[0],cq.Shape):