FIX:Fix the issue of importing GCode array out of bounds

jira: STUDIO-12389
Change-Id: Id7995558bf0e297e2360b338ffbf63d93efa38f0
(cherry picked from commit 6d15a9005769a7dbfb96bb28ce6b57e55bf1c435)
This commit is contained in:
zhou.xu
2025-05-26 21:01:24 +08:00
committed by Noisyfox
parent 38ad17ffbe
commit adeb3ab3f7
3 changed files with 13 additions and 2 deletions

View File

@@ -12324,6 +12324,7 @@ void Plater::load_gcode(const wxString& filename)
// process gcode
GCodeProcessor processor;
processor.init_filament_maps_and_nozzle_type_when_import_only_gcode();
try
{
GCodeProcessor::s_IsBBLPrinter = wxGetApp().preset_bundle->is_bbl_vendor();