mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Use is not operator rather than not ... is
This is advocated by both PEP8 and the Google Python Style Guide
This commit is contained in:
parent
06e61a3129
commit
ff07129f2c
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class ShapeArray:
|
||||||
for child in children:
|
for child in children:
|
||||||
# 'Inefficient' combination of convex hulls through known code rather than mess it up:
|
# 'Inefficient' combination of convex hulls through known code rather than mess it up:
|
||||||
child_hull = child.callDecoration("getConvexHull")
|
child_hull = child.callDecoration("getConvexHull")
|
||||||
if not child_hull is None:
|
if child_hull is not None:
|
||||||
hull_verts = hull_verts.unionConvexHulls(child_hull)
|
hull_verts = hull_verts.unionConvexHulls(child_hull)
|
||||||
child_hull_head = child.callDecoration("getConvexHullHead") or child_hull
|
child_hull_head = child.callDecoration("getConvexHullHead") or child_hull
|
||||||
if not child_hull_head is None:
|
if not child_hull_head is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue