FIX: Incorrect value in burying point

JIRA: STUDIO-6104 STUDIO-6100

Signed-off-by: Kunlong Ma <kunlong.ma@bambulab.com>
Change-Id: I6360d30900b020c067d85ac48b741dda7eb354ba
This commit is contained in:
Kunlong Ma 2024-02-06 10:28:59 +08:00 committed by Lane.Wei
parent 607c352520
commit dfeb1eba09
2 changed files with 8 additions and 3 deletions

View File

@ -6281,6 +6281,11 @@ bool GLCanvas3D::_init_main_toolbar()
if (agent) agent->track_update_property("custom_height", std::to_string(++custom_height_count));
}
};
item.right.action_callback = [this]() {
if (m_canvas != nullptr) {
wxPostEvent(m_canvas, SimpleEvent(EVT_GLTOOLBAR_LAYERSEDITING));
}
};
item.visibility_callback = [this]()->bool {
bool res = current_printer_technology() == ptFFF;
// turns off if changing printer technology
@ -9324,7 +9329,7 @@ bool GLCanvas3D::_deactivate_orient_menu()
bool GLCanvas3D::_deactivate_layersediting_menu()
{
if (m_main_toolbar.is_item_pressed("layersediting")) {
m_main_toolbar.force_left_action(m_main_toolbar.get_item_id("layersediting"), *this);
m_main_toolbar.force_right_action(m_main_toolbar.get_item_id("layersediting"), *this);
return true;
}

View File

@ -2126,7 +2126,7 @@ struct Plater::priv
//ObjectTableDialog* m_popup_table{ nullptr };
std::chrono::system_clock::time_point start;
std::string file_type;
std::string is_mw;
std::string is_mw{"false"};
#if ENABLE_ENVIRONMENT_MAP
GLTexture environment_texture;
@ -4212,7 +4212,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
if (model.model_info == nullptr) {
is_mw = "false";
}
else {
else if(model.model_info->description != "") {
is_mw = "true";
}
}