diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-08-24 09:56:53 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-08-24 09:56:53 +0300 |
commit | 16259e6f2693e16112728ddc844ae3ca29c49dd9 (patch) | |
tree | c136432daf8743ef1f6fe87cdf70598811dfd6e1 /xs/src/slic3r/GUI/3DScene.cpp | |
parent | 7e228e66989028b18af8be6b9f9cae346586dffc (diff) |
Fixed out of print volume detection
Diffstat (limited to 'xs/src/slic3r/GUI/3DScene.cpp')
-rw-r--r-- | xs/src/slic3r/GUI/3DScene.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xs/src/slic3r/GUI/3DScene.cpp b/xs/src/slic3r/GUI/3DScene.cpp index a3f7e0a4c..0fa31ee50 100644 --- a/xs/src/slic3r/GUI/3DScene.cpp +++ b/xs/src/slic3r/GUI/3DScene.cpp @@ -818,7 +818,10 @@ bool GLVolumeCollection::check_outside_state(const DynamicPrintConfig* config, M return false; BoundingBox bed_box_2D = get_extents(Polygon::new_scale(opt->values)); - BoundingBoxf3 print_volume(unscale(bed_box_2D.min(0), bed_box_2D.min(1), 0.0), unscale(bed_box_2D.max(0), bed_box_2D.max(1), unscale<double>(config->opt_float("max_print_height")))); +//############################################################################################################################################ + BoundingBoxf3 print_volume(unscale(bed_box_2D.min(0), bed_box_2D.min(1), 0.0), unscale(bed_box_2D.max(0), bed_box_2D.max(1), config->opt_float("max_print_height"))); +// BoundingBoxf3 print_volume(unscale(bed_box_2D.min(0), bed_box_2D.min(1), 0.0), unscale(bed_box_2D.max(0), bed_box_2D.max(1), unscale<double>(config->opt_float("max_print_height")))); +//############################################################################################################################################ // Allow the objects to protrude below the print bed print_volume.min(2) = -1e10; |