Show clipping plane in front to make it easy to select

This commit is contained in:
Dion Moult
2024-09-28 17:35:01 +10:00
parent a5e6539ddf
commit d1c430cd4d
@@ -2176,6 +2176,7 @@ class CreateClippingPlane(bpy.types.Operator):
mesh.update()
plane_obj = bpy.data.objects.new("ClippingPlane", mesh)
plane_obj.show_in_front = True
context.collection.objects.link(plane_obj)
z_axis = Vector((0, 0, 1))
rotation_matrix = z_axis.rotation_difference(normal).to_matrix().to_4x4()