From a3761777553c34cdbefc05c4b0d0afc4ebe5ee87 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Fri, 14 Oct 2022 09:51:44 -0500 Subject: [PATCH] Testing show_object change for b123d --- cq_editor/widgets/cq_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cq_editor/widgets/cq_utils.py b/cq_editor/widgets/cq_utils.py index cad702f..df5f9c1 100644 --- a/cq_editor/widgets/cq_utils.py +++ b/cq_editor/widgets/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):