Browse Source

A point is always visible from a 360° panorama

Baptiste Jonglez 9 years ago
parent
commit
6b26234f0c
1 changed files with 2 additions and 0 deletions
  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()