Commit 3ccab5bf authored by Lars Kruse's avatar Lars Kruse

don't break on zoom in/out even if no objects are visible

parent 2f733bad
......@@ -951,6 +951,8 @@ class Camera(object):
def shift_view(self, x_dist=0, y_dist=0):
obj_dim = []
low, high = self._get_low_high_dims()
if None in low or None in high:
return
for index in range(3):
obj_dim.append(high[index] - low[index])
max_dim = max(obj_dim)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment