FIX: enhance filament_map auto manual behavior

1. auto mode dragdrop is not allowed
2. not display filament_map when there is no result in auto mode

jira:none

Change-Id: I0800e0d832e27fe459a17bb1aa829b5e72d0ee8f
(cherry picked from commit 9ee85bef34aaabe7a4cef251f07e77f9af693a2f)
This commit is contained in:
zhimin.zeng
2024-08-09 17:46:11 +08:00
committed by Noisyfox
parent 00388756ed
commit 1ada437979
10 changed files with 147 additions and 28 deletions

View File

@@ -2623,6 +2623,7 @@ void Print::update_filament_maps_to_config(std::vector<int> f_maps)
t_config_option_keys keys(filament_options_with_variant.begin(), filament_options_with_variant.end());
m_config.apply_only(m_full_print_config, keys, true);
}
m_has_auto_filament_map_result = true;
}
std::vector<int> Print::get_filament_maps() const

View File

@@ -1003,6 +1003,10 @@ public:
void set_calib_params(const Calib_Params& params);
const Calib_Params& calib_params() const { return m_calib_params; }
Vec2d translate_to_print_space(const Vec2d &point) const;
bool has_auto_filament_map_result() const { return m_has_auto_filament_map_result; }
void set_auto_filament_map_result(bool has_result) { m_has_auto_filament_map_result = has_result; }
// scaled point
Vec2d translate_to_print_space(const Point &point) const;
static FilamentTempType get_filament_temp_type(const std::string& filament_type);
@@ -1085,6 +1089,7 @@ private:
//BBS
ConflictResultOpt m_conflict_result;
FakeWipeTower m_fake_wipe_tower;
bool m_has_auto_filament_map_result{false};
//SoftFever: calibration
Calib_Params m_calib_params;