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:
authorBastien Montagne <bastien@blender.org>2022-02-21 14:01:47 +0300
committerBastien Montagne <bastien@blender.org>2022-02-21 14:01:47 +0300
commit8a69eca9b18cf88cd7f6404f399e0acbd7a93f3b (patch)
treea1b02d6354c1fe38dfce456f2004358c3ee1b166
parenta1699d9e4f52925cd974c56f753ca1676d1b1c8f (diff)
parent7476c1ac248472c1442b3fb1cb3e0a79747e48f6 (diff)
Merge branch 'blender-v3.1-release'
-rw-r--r--io_import_dxf/dxfimport/do.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py
index c4de410f..d05380a0 100644
--- a/io_import_dxf/dxfimport/do.py
+++ b/io_import_dxf/dxfimport/do.py
@@ -173,7 +173,7 @@ class Do:
# type(self, dxf entity, blender curve data)
def _cubic_bezier_closed(self, ptuple, curve):
- count = (len(ptuple)-1)/3
+ count = int((len(ptuple) - 1) / 3)
points = [ptuple[-2]]
ptuples = ptuple[:-2]
points += [p for p in ptuples]
@@ -188,7 +188,7 @@ class Do:
b[i].handle_right = self.proj(points[j + 1])
def _cubic_bezier_open(self, points, curve):
- count = (len(points) - 1) / 3 + 1
+ count = int((len(points) - 1) / 3 + 1)
spl = curve.splines.new('BEZIER')
b = spl.bezier_points
b.add(count - 1)