X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Frays.py;h=11bfd33fd259e42fc397bbe0e63b3862860150e1;hb=37b6c8bf03ac7d9ffbb880d8afe64d5f1937d29a;hp=621ded65a0e25f557a1d9f6db4f92ad9f62f7ac8;hpb=dbee821317a4e96a774456fdd788fb14766a7bdf;p=tabakrolletjie.git diff --git a/tabakrolletjie/rays.py b/tabakrolletjie/rays.py index 621ded6..11bfd33 100644 --- 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