ENH: add initial layer time to plate_x.json and slice_info.config

Jira: STUDIO-14504
Change-Id: I32460f1c19cce7c729806e35370e8b4b57aa069e
(cherry picked from commit 04a487d210134c28245c1f0f7d0986266a1c66f2)
This commit is contained in:
weizhen.xie
2025-09-16 10:08:44 +08:00
committed by Noisyfox
parent 778874aa01
commit 9f7ff97be6
8 changed files with 17 additions and 1 deletions

View File

@@ -161,6 +161,7 @@ class Print;
ConflictResultOpt conflict_result;
GCodeCheckResult gcode_check_result;
FilamentPrintableResult filament_printable_reuslt;
float initial_layer_time;
struct SettingsIds
{

View File

@@ -78,6 +78,7 @@ struct PlateBBoxData
int first_extruder = 0;
float nozzle_diameter = 0.4;
std::string bed_type;
float first_layer_time;
// version 1: use view type ColorPrint (filament color)
// version 2: use view type FilamentId (filament id)
int version = 2;
@@ -91,6 +92,7 @@ struct PlateBBoxData
j["nozzle_diameter"] = nozzle_diameter;
j["version"] = version;
j["bed_type"] = bed_type;
j["first_layer_time"] = first_layer_time;
for (const auto& bbox : bbox_objs) {
nlohmann::json j_bbox;
bbox.to_json(j_bbox);