From 821807f117dff841dd4f2249714dd8ae41e6a651 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 10 Sep 2016 13:55:29 +0200 Subject: [PATCH] Return 0 for the direction if it is currently None. --- tabakrolletjie/rays.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1