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>2011-08-22 13:29:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-22 13:29:33 +0400
commitcf3881371a5c64d56f352cf09395f93072889a7c (patch)
tree35325e4865f1371d544d3617fbeee47cd4867f73 /modules
parente8b28e4d5ad91500e201e014465a03c5ba2b6261 (diff)
pep8 edits
Diffstat (limited to 'modules')
-rw-r--r--modules/geometry_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/geometry_utils.py b/modules/geometry_utils.py
index 8fd0e00e..413c24b8 100644
--- a/modules/geometry_utils.py
+++ b/modules/geometry_utils.py
@@ -136,7 +136,7 @@ class G3:
def closestP2CylinderAxis(cls, p, fv):
n = G3.ThreePnormal(fv)
c = G3.circumCenter(fv)
- if(c==None):
+ if c is None:
return None
return G3.closestP2L(p, c, c+n)
@@ -163,7 +163,7 @@ class G3:
#print ("G3.closestP2Sphere")
try:
c = G3.centerOfSphere(fv)
- if c==None:
+ if c is None:
return None
pc = p-c
if pc.length == 0:
@@ -178,7 +178,7 @@ class G3:
def closestP2Cylinder(cls, p, fv):
#print ("G3.closestP2Sphere")
c = G3.closestP2CylinderAxis(p, fv)
- if c==None:
+ if c is None:
return None
r = (fv[0] - G3.centerOfSphere(fv)).length
pc = p-c