Fix T98658: Bsurfaces error when cyclic cross and follow is checked in redo panel

explicitly cast segment value to int for avoiding TypeError
This problem has begun to happen after python 3.10 upgrade

Maniphest Tasks: T98658

Differential Revision: https://developer.blender.org/D15224
This commit is contained in:
Pratik Borhade 2022-07-05 11:20:26 +02:00 committed by Philipp Oeser
parent b13fa85ef3
commit 0d1a3cc243
Notes: blender-bot 2023-02-14 18:19:23 +01:00
Referenced by issue #98658, Bsurfaces error when cyclic cross and follow is checked in redo panel
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
bl_info = {
"name": "Bsurfaces GPL Edition",
"author": "Eclectiel, Vladimir Spivak (cwolf3d)",
"version": (1, 8, 0),
"version": (1, 8, 1),
"blender": (2, 80, 0),
"location": "View3D EditMode > Sidebar > Edit Tab",
"description": "Modeling and retopology tool",
@ -2517,7 +2517,7 @@ class MESH_OT_SURFSK_add_surface(Operator):
self.average_gp_segment_length
)
for t in range(2):
bpy.ops.curve.subdivide('INVOKE_REGION_WIN', number_cuts=segments)
bpy.ops.curve.subdivide('INVOKE_REGION_WIN', number_cuts=int(segments))
# Delete the other vertices and make it non-cyclic to
# keep only the needed verts of the "closing segment"