Fix issue where walls are created with obtuse x_angle. See #5938

This commit is contained in:
Bruno Perdigão
2025-02-26 13:00:11 -03:00
parent e68c47a897
commit 2609a8293c
2 changed files with 3 additions and 2 deletions
@@ -85,6 +85,7 @@ def get_wall_preview_data(context, relating_type):
if x_angle > radians(90) or x_angle < radians(-90):
height *= -1
angle_distance = height * tan(x_angle)
thickness *= 1 / cos(x_angle)
data = {}
data["verts"] = []