Skip to content

Commit

Permalink
Merge 28a916b into 904087b
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 24, 2018
2 parents 904087b + 28a916b commit e414c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trimesh/scene/viewer.py
Expand Up @@ -46,7 +46,8 @@ def __init__(self,

if scene.camera is not None:
if resolution is not None:
if resolution != scene.camera.resolution:
if not np.allclose(resolution, scene.camera.resolution,
rtol=0, atol=0):
log.warning(
'resolution is overwritten by Camera: '
'{} -> {}'.format(resolution,
Expand Down

0 comments on commit e414c53

Please sign in to comment.