ENH:the "distance" var should init to 0 in the release environment of Mac

jira: STUDIO-10967
Change-Id: I85b1e87dc80846f50c3bd29c7aa05f89c39d17de
(cherry picked from commit 4b368cb2ecafd53ad1bbe61946bb9b1bafce64cb)
This commit is contained in:
zhou.xu
2025-03-19 15:40:47 +08:00
committed by Noisyfox
parent 9c4c5ba915
commit 5113b2c2dc
3 changed files with 17 additions and 11 deletions

View File

@@ -37,15 +37,15 @@ enum MappingResult {
struct FilamentInfo
{
int id; // filament id = extruder id, start with 0.
int id{0}; // filament id = extruder id, start with 0.
std::string type;
std::string color;
std::string filament_id;
std::string brand;
float used_m;
float used_g;
int tray_id; // start with 0
float distance;
float used_m{0.f};
float used_g{0.f};
int tray_id{0}; // start with 0
float distance{0.f};
int ctype = 0;
std::vector<std::string> colors = std::vector<std::string>();
int mapping_result = 0;