From 0d1a3cc2430efe46cd5f4b224a29f17133947283 Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Tue, 5 Jul 2022 11:20:26 +0200 Subject: 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 --- mesh_bsurfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesh_bsurfaces.py') diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index 58ddd7aa..c980ed04 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -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" -- cgit v1.2.3