[Bf-extensions-cvs] [0d1a3cc2] master: Fix T98658: Bsurfaces error when cyclic cross and follow is checked in redo panel

Pratik Borhade noreply at git.blender.org
Tue Jul 5 11:23:21 CEST 2022


Commit: 0d1a3cc2430efe46cd5f4b224a29f17133947283
Author: Pratik Borhade
Date:   Tue Jul 5 11:20:26 2022 +0200
Branches: master
https://developer.blender.org/rBA0d1a3cc2430efe46cd5f4b224a29f17133947283

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

===================================================================

M	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"



More information about the Bf-extensions-cvs mailing list