[Bf-extensions-cvs] [c3ced449] master: Addon: Curve Tools: Fixed some errors.

Spivak Vladimir cwolf3d noreply at git.blender.org
Wed Oct 30 10:56:21 CET 2019


Commit: c3ced44917124c1f4f156a71728c12eda6101daa
Author: Spivak Vladimir (cwolf3d)
Date:   Wed Oct 30 11:55:32 2019 +0200
Branches: master
https://developer.blender.org/rBAc3ced44917124c1f4f156a71728c12eda6101daa

Addon: Curve Tools: Fixed some errors.

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

M	curve_tools/__init__.py
M	curve_tools/operators.py

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

diff --git a/curve_tools/__init__.py b/curve_tools/__init__.py
index bc646780..20b353a3 100644
--- a/curve_tools/__init__.py
+++ b/curve_tools/__init__.py
@@ -25,7 +25,7 @@ bl_info = {
     "name": "Curve Tools",
     "description": "Adds some functionality for bezier/nurbs curve/surface modeling",
     "author": "Mackraken",
-    "version": (0, 4, 0),
+    "version": (0, 4, 1),
     "blender": (2, 80, 0),
     "location": "View3D > Tool Shelf > Edit Tab",
     "warning": "WIP",
diff --git a/curve_tools/operators.py b/curve_tools/operators.py
index 099b57bb..7e554483 100644
--- a/curve_tools/operators.py
+++ b/curve_tools/operators.py
@@ -1096,6 +1096,8 @@ class CurveBoolean(bpy.types.Operator):
                 bpy.ops.object.mode_set(mode = 'EDIT')
                 bpy.ops.curve.select_all(action='SELECT')
                 splines = internal.getSelectedSplines(True, True)
+                if len(splines) < 2:
+                   continue
                 splineA = splines[0]
                 splineB = splines[1]
                 operation = self.operation



More information about the Bf-extensions-cvs mailing list