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:
authorJacques Lucke <mail@jlucke.com>2018-10-22 18:12:34 +0300
committerJacques Lucke <mail@jlucke.com>2018-10-22 18:13:13 +0300
commitdc212f77d1c82bacbe941a0d84fcfdead9ace17a (patch)
treeef85b8f619f76faa521ee94001678ea579a77e01 /io_curve_svg
parentbfb29776393325f2195177fe2edffdcd3668c143 (diff)
SVG Format: minor Blender 2.8 fixes
Diffstat (limited to 'io_curve_svg')
-rw-r--r--io_curve_svg/__init__.py3
-rw-r--r--io_curve_svg/import_svg.py10
2 files changed, 6 insertions, 7 deletions
diff --git a/io_curve_svg/__init__.py b/io_curve_svg/__init__.py
index bab43e51..c8a9988d 100644
--- a/io_curve_svg/__init__.py
+++ b/io_curve_svg/__init__.py
@@ -57,8 +57,7 @@ class ImportSVG(bpy.types.Operator, ImportHelper):
def execute(self, context):
from . import import_svg
- return import_svg.load(self, context,
- **self.as_keywords(ignore=("filter_glob",)))
+ return import_svg.load(self, context, filepath=self.filepath)
def menu_func_import(self, context):
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 986b772f..a7cba61b 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -1234,7 +1234,7 @@ class SVGGeometryPATH(SVGGeometry):
act_spline = cu.splines[-1]
act_spline.use_cyclic_u = spline['closed']
else:
- act_spline.bezier_points.add()
+ act_spline.bezier_points.add(count=1)
bezt = act_spline.bezier_points[-1]
bezt.co = co
@@ -1378,7 +1378,7 @@ class SVGGeometryRECT(SVGGeometry):
co = self._transformCoord(coord)
if not firstTime:
- spline.bezier_points.add()
+ spline.bezier_points.add(count=1)
bezt = spline.bezier_points[-1]
bezt.co = co
@@ -1578,7 +1578,7 @@ class SVGGeometryELLIPSE(SVGGeometry):
spline = cu.splines[-1]
spline.use_cyclic_u = True
else:
- spline.bezier_points.add()
+ spline.bezier_points.add(count=1)
bezt = spline.bezier_points[-1]
bezt.co = co
@@ -1670,7 +1670,7 @@ class SVGGeometryLINE(SVGGeometry):
spline = cu.splines[-1]
spline.use_cyclic_u = True
else:
- spline.bezier_points.add()
+ spline.bezier_points.add(count=1)
bezt = spline.bezier_points[-1]
bezt.co = co
@@ -1746,7 +1746,7 @@ class SVGGeometryPOLY(SVGGeometry):
spline = cu.splines[-1]
spline.use_cyclic_u = self._closed
else:
- spline.bezier_points.add()
+ spline.bezier_points.add(count=1)
bezt = spline.bezier_points[-1]
bezt.co = co