PDT: Merge branch 'blender-v3.1-release'

This commit is contained in:
Rune Morling 2022-02-26 14:48:25 +01:00
commit cbfbb76b35
2 changed files with 4 additions and 3 deletions

View File

@ -13,8 +13,8 @@
bl_info = {
"name": "Precision Drawing Tools (PDT)",
"author": "Alan Odom (Clockmender), Rune Morling (ermo)",
"version": (1, 5, 1),
"blender": (2, 90, 0),
"version": (1, 5, 2),
"blender": (3, 0, 0),
"location": "View3D > UI > PDT",
"description": "Precision Drawing Tools for Accurate Modelling",
"warning": "",

View File

@ -1043,7 +1043,8 @@ def fillet_geometry(context, pg, mode, obj, bm, verts, values):
# Note that passing an empty parameter results in that parameter being seen as "0"
# _offset <= 0 is ignored since a bevel/fillet radius must be > 0 to make sense
_offset = float(values[0])
_segments = float(values[1])
# Force _segments to an integer (bug fix T95442)
_segments = int(float(values[1]))
if _segments < 1:
_segments = 1 # This is a single, flat segment (ignores profile)
_profile = float(values[2])