mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-11 16:00:17 -07:00
Merge branch 'master-remote' into SoftFever
# Conflicts: # src/slic3r/GUI/MediaPlayCtrl.cpp
This commit is contained in:
commit
de874acc99
13 changed files with 60 additions and 33 deletions
|
|
@ -1475,9 +1475,12 @@ void GCodeViewer::render_calibration_thumbnail(ThumbnailData& thumbnail_data, un
|
|||
}
|
||||
}
|
||||
set_view_type(EViewType::FilamentId, false);
|
||||
// set m_layers_z_range to 0, 0
|
||||
// set m_layers_z_range to 0, 1;
|
||||
// To be safe, we include both layers here although layer 1 seems enough
|
||||
// layer 0: custom extrusions such as flow calibration etc.
|
||||
// layer 1: the real first layer of object
|
||||
std::array<unsigned int, 2> tmp_layers_z_range = m_layers_z_range;
|
||||
m_layers_z_range = {0, 0};
|
||||
m_layers_z_range = {0, 1};
|
||||
// BBS exclude feature types
|
||||
m_extrusions.role_visibility_flags = m_extrusions.role_visibility_flags & ~(1 << erSkirt);
|
||||
m_extrusions.role_visibility_flags = m_extrusions.role_visibility_flags & ~(1 << erCustom);
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const w
|
|||
media_proc();
|
||||
});
|
||||
|
||||
// #if BBL_RELEASE_TO_PUBLIC
|
||||
m_next_retry = wxDateTime::Now();
|
||||
// #endif
|
||||
//#if BBL_RELEASE_TO_PUBLIC
|
||||
// m_next_retry = wxDateTime::Now();
|
||||
//#endif
|
||||
|
||||
auto onShowHide = [this](auto &e) {
|
||||
e.Skip();
|
||||
|
|
|
|||
|
|
@ -2819,7 +2819,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||
|
||||
// restore the extruder after reset
|
||||
if (has_extruder) { model_object->config.set("extruder", extruder_id); }
|
||||
|
||||
|
||||
// Is there any modifier or advanced config data?
|
||||
for (ModelVolume *model_volume : model_object->volumes) {
|
||||
has_extruder = model_volume->config.has("extruder");
|
||||
|
|
@ -6871,9 +6871,25 @@ void Plater::add_model(bool imperial_units/* = false*/)
|
|||
}
|
||||
|
||||
Plater::TakeSnapshot snapshot(this, snapshot_label);
|
||||
|
||||
// BBS: check file types
|
||||
auto loadfiles_type = LoadFilesType::NoFile;
|
||||
auto amf_files_count = get_3mf_file_count(paths);
|
||||
|
||||
if (paths.size() > 1 && amf_files_count < paths.size()) { loadfiles_type = LoadFilesType::Multiple3MFOther; }
|
||||
if (paths.size() > 1 && amf_files_count == paths.size()) { loadfiles_type = LoadFilesType::Multiple3MF; }
|
||||
if (paths.size() > 1 && amf_files_count == 0) { loadfiles_type = LoadFilesType::MultipleOther; }
|
||||
if (paths.size() == 1 && amf_files_count == 1) { loadfiles_type = LoadFilesType::Single3MF; };
|
||||
if (paths.size() == 1 && amf_files_count == 0) { loadfiles_type = LoadFilesType::SingleOther; };
|
||||
|
||||
bool ask_multi = false;
|
||||
|
||||
if (loadfiles_type == LoadFilesType::MultipleOther)
|
||||
ask_multi = true;
|
||||
|
||||
auto strategy = LoadStrategy::LoadModel;
|
||||
if (imperial_units) strategy = strategy | LoadStrategy::ImperialUnits;
|
||||
if (!load_files(paths, strategy).empty()) {
|
||||
if (!load_files(paths, strategy, ask_multi).empty()) {
|
||||
wxGetApp().mainframe->update_title();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue