Parcourir la source

A point is always visible from a 360° panorama

Baptiste Jonglez il y a 9 ans
Parent
commit
6b26234f0c
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      panorama/models.py

+ 2 - 0
panorama/models.py

@@ -215,6 +215,8 @@ class Panorama(ReferencePoint):
 
     def is_visible(self, point):
         """Return True if the Panorama can see the point."""
+        if self.loop:
+            return True
         cap = self.bearing(point) % 360
         cap_min = self.cap_min()
         cap_max = self.cap_max()