Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPratik Borhade <PratikPB2123>2022-07-05 12:20:26 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-07-05 12:20:26 +0300
commit0d1a3cc2430efe46cd5f4b224a29f17133947283 (patch)
tree1ec482a4a1e0e1cc7188f458b4746780860be4d6
parentb13fa85ef34979ccd57ad8bb3e6212feb92bd9ff (diff)
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
-rw-r--r--mesh_bsurfaces.py4
1 files changed, 2 insertions, 2 deletions
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"