diff --git a/trimesh/scene/viewer.py b/trimesh/scene/viewer.py index 13002eac8..1ae8a3bd8 100644 --- a/trimesh/scene/viewer.py +++ b/trimesh/scene/viewer.py @@ -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,