Browse Source

removing magic number Adding max render distance

CURA-11650
Saumya Jain 1 year ago
parent
commit
64bb69c48f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cura/Snapshot.py

+ 2 - 2
cura/Snapshot.py

@@ -100,8 +100,8 @@ class Snapshot:
             camera_width / 2,
             -camera_height / 2,
             camera_height / 2,
-            -10000,
-            10000
+            -Snapshot.MAX_RENDER_DISTANCE,
+            Snapshot.MAX_RENDER_DISTANCE
         )
         camera.setPerspective(False)
         camera.setProjectionMatrix(ortho_matrix)