From: <je...@un...> - 2006-06-30 18:50:15
|
current_tool can be None, so don't throw a fit M +1 -1 axis.py 1.209 http://unpythonic.net/cgi-bin/viewcvs.cgi/axis/scripts/axis.py.diff?r1=1.208&r2=1.209 --- axis.py 29 Jun 2006 21:15:39 -0000 1.208 +++ axis.py 30 Jun 2006 18:50:09 -0000 1.209 @@ -725,7 +725,7 @@ glRotatef(s.position[3], 0, 1, 0) elif axisnames[3] == "C": glRotatef(s.position[3], 0, 0, 1) - if lathe and current_tool != [] and current_tool[0][-1:] != 0: + if lathe and current_tool and current_tool[0][-1:] != 0: lathetool() else: if lathe: |