fix poll errors for clipping plane gizmo #4392

This commit is contained in:
Andrej730
2024-03-05 14:37:30 +05:00
parent ac4669f841
commit 5246e8588a
@@ -34,6 +34,7 @@ class ClippingPlane(GizmoGroup):
obj = context.object
return (
context.selected_objects
and obj
and obj.name.startswith("ClippingPlane")
and obj in [sp.obj for sp in context.scene.BIMProjectProperties.clipping_planes]
)