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)