projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return 0 for the direction if it is currently None.
[tabakrolletjie.git]
/
tabakrolletjie
/
rays.py
diff --git
a/tabakrolletjie/rays.py
b/tabakrolletjie/rays.py
index 621ded65a0e25f557a1d9f6db4f92ad9f62f7ac8..11bfd33fd259e42fc397bbe0e63b3862860150e1 100644
(file)
--- a/
tabakrolletjie/rays.py
+++ b/
tabakrolletjie/rays.py
@@
-148,6
+148,8
@@
class RayPolyManager(object):
@property
def direction(self):
+ if self._direction is None:
+ return 0
return self._direction.angle_degrees
@direction.setter