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 obj = context.object
return ( return (
context.selected_objects context.selected_objects
and obj
and obj.name.startswith("ClippingPlane") and obj.name.startswith("ClippingPlane")
and obj in [sp.obj for sp in context.scene.BIMProjectProperties.clipping_planes] and obj in [sp.obj for sp in context.scene.BIMProjectProperties.clipping_planes]
) )