From 3d71cc3620d71e1d41f42740d9fb76e2ef5f6c46 Mon Sep 17 00:00:00 2001 From: Roger Maitland Date: Tue, 6 Dec 2022 10:20:47 -0500 Subject: [PATCH] Made show_object conditional --- examples/pegboard_j_hook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/pegboard_j_hook.py b/examples/pegboard_j_hook.py index 7048f0b..e86cb71 100644 --- a/examples/pegboard_j_hook.py +++ b/examples/pegboard_j_hook.py @@ -69,4 +69,5 @@ with BuildPart() as mainp: Split(bisect_by=Plane(origin=(0, 0, -splitz))) Split(bisect_by=Plane(origin=(0, 0, splitz)), keep=Keep.BOTTOM) -show_object(mainp.part.wrapped) +if "show_object" in locals(): + show_object(mainp.part.wrapped)