Коммит 66c158c9 создал по автору DolphinDream's avatar DolphinDream
Просмотр файлов

Sanitize scale input in the ellipse node

владелец 7b460f01
......@@ -285,8 +285,9 @@ class SvEllipseNodeMK2(bpy.types.Node, SverchCustomTreeNode, SvAngleHelper):
input_c = list(map(lambda a, c: max(0.0, min(a, c)), input_a, input_c))
input_b = list(map(lambda a, c: sqrt(a * a - c * c), input_a, input_c))
# sanitize the input
# sanitize more inputs
input_N = list(map(lambda n: max(3, int(n)), input_N))
input_s = list(map(lambda s: max(0.0, s), input_s))
parameters = match_long_repeat([input_a, input_b, input_N, input_p, input_r, input_s])
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать