Fix clipped tall models in G-code preview for gcode files (#15360)

Fix clipped tall models in G-code preview

Co-authored-by: yw4z <ywsyildiz@gmail.com>
This commit is contained in:
anjis
2026-09-28 14:58:24 +03:00
committed by GitHub
co-authored by yw4z
parent 576cce2f72
commit c30c9beb09
+1
View File
@@ -1443,6 +1443,7 @@ void GCodeViewer::load_as_gcode(const GCodeProcessorResult& gcode_result, const
libvgcode::EGCodeExtrusionRole::SupportTransition, libvgcode::EGCodeExtrusionRole::Mixed
});
m_paths_bounding_box = BoundingBoxf3(libvgcode::convert(bbox[0]).cast<double>(), libvgcode::convert(bbox[1]).cast<double>());
m_max_bounding_box = m_paths_bounding_box;
if (wxGetApp().is_editor())
m_contained_in_bed = wxGetApp().plater()->build_volume().all_paths_inside(gcode_result, m_paths_bounding_box);