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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-19 03:35:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-19 03:35:45 +0300
commit9cc2ad1eaf941d8ed3b5542a3d5cdfccec7ba60b (patch)
tree43ea30ad9109c60886e523a3d7d38b6c9e2b2c23 /mesh_bsurfaces.py
parentfb75f259861bf3dcd82abfab8b10b83da947053e (diff)
Fix invalid string comparisons
Identity checks should never be used with strings, it may fail based on Python's interning logic.
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index ffe16e04..53b88d49 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -2928,7 +2928,7 @@ class GPENCIL_OT_SURFSK_add_surface(Operator):
for i in range(0, len(surface_splines_parsed[0])):
surface_splines_parsed[0][i] = self.main_object.matrix_world * verts_ordered_V2[i].co
- # When "Automatic join" option is active (and the selection type is not "TWO_CONNECTED"),
+ # When "Automatic join" option is active (and the selection type != "TWO_CONNECTED"),
# merge the verts of the tips of the loops when they are "near enough"
if self.automatic_join and selection_type != "TWO_CONNECTED":
# Join the tips of "Follow" loops that are near enough and must be "closed"