FIX: gui: fix some .gcode.3mf can not load issue

jira: no-jira
Change-Id: I8a80936f7a3e1a70116e474cd4429fb23b1d218b
(cherry picked from commit 9ad06ba3f49c32d0bf6cb40cc838f3be12ee7d35)
This commit is contained in:
lane.wei 2025-03-08 11:48:40 +08:00 committed by Noisyfox
parent 4472c801b9
commit c8484d99d6

View file

@ -2904,7 +2904,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
auto timelapse_type = dconfig.option<ConfigOptionEnum<TimelapseType>>("timelapse_type");
bool timelapse_enabled = timelapse_type ? (timelapse_type->value == TimelapseType::tlSmooth) : false;
if (wt && (timelapse_enabled || filaments_count > 1)) {
if (wt && (timelapse_enabled || filaments_count > 1) && !wxGetApp().plater()->only_gcode_mode() && !wxGetApp().plater()->is_gcode_3mf()) {
for (int plate_id = 0; plate_id < n_plates; plate_id++) {
// If print ByObject and there is only one object in the plate, the wipe tower is allowed to be generated.
PartPlate* part_plate = ppl.get_plate(plate_id);