Limit clipping plane euler rotation angles to <= 360 degrees (#6877)

The "Flip Clipping Plane" operator adds 180 degrees to the angle's value, meaning the angle will keep increasing with each press.
This commit is contained in:
nameloCmaS
2025-10-24 04:10:38 +01:00
committed by GitHub
parent 8ffa6fcf47
commit 2dac137801
@@ -2522,6 +2522,7 @@ class FlipClippingPlane(bpy.types.Operator):
obj = context.active_object
if obj in tool.Project.get_project_props().clipping_planes_objs:
obj.rotation_euler[0] += radians(180)
obj.rotation_euler[0] %= radians(360)
context.view_layer.update()
return {"FINISHED"}