mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH: filament map params switch to global param
1.Add more filament map modes 2.Filament map and mode are set as project config 3.Plate filament map is only valid when plate filament mode is manual jira:NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I33b2f853e0b77b9d605be1f2f1172b44df43da15 (cherry picked from commit e45f8c6dc2146e1e31a1c21e8aaada540af112d0)
This commit is contained in:
@@ -1207,8 +1207,9 @@ bool GLVolumeCollection::check_outside_state(const BuildVolume &build_volume, Mo
|
||||
//check per-object error for extruder areas
|
||||
if (object_results && (extruder_count > 1))
|
||||
{
|
||||
object_results->mode = curr_plate->get_filament_map_mode();
|
||||
if (object_results->mode == FilamentMapMode::fmmAuto)
|
||||
const auto& project_config = Slic3r::GUI::wxGetApp().preset_bundle->project_config;
|
||||
object_results->mode = curr_plate->get_real_filament_map_mode(project_config);
|
||||
if (object_results->mode < FilamentMapMode::fmmManual)
|
||||
{
|
||||
std::vector<int> conflict_filament_vector;
|
||||
for (int index = 0; index < extruder_count; index++ )
|
||||
@@ -1269,7 +1270,8 @@ bool GLVolumeCollection::check_outside_state(const BuildVolume &build_volume, Mo
|
||||
else
|
||||
{
|
||||
std::set<int> conflict_filaments_set;
|
||||
std::vector<int> filament_maps = curr_plate->get_filament_maps();
|
||||
const auto& project_config = Slic3r::GUI::wxGetApp().preset_bundle->project_config;
|
||||
std::vector<int> filament_maps = curr_plate->get_real_filament_maps(project_config);
|
||||
for (auto& object_map: objects_unprintable_filaments)
|
||||
{
|
||||
ModelObject *model_object = object_map.first;
|
||||
|
||||
Reference in New Issue
Block a user