FIX:filename use '/' for save

jira: none
Change-Id: Ic7ffd91f0eeaf73b348a8064fbb0c2ace5a44066
This commit is contained in:
zhou.xu 2024-10-18 15:22:01 +08:00 committed by Lane.Wei
parent 8dfd3bbb0c
commit 182a4f75d9
2 changed files with 4 additions and 1 deletions

View File

@ -248,6 +248,7 @@ bool Bed3D::set_shape(const Pointfs& printable_area, const double printable_heig
m_type = type;
//m_texture_filename = texture_filename;
m_model_filename = model_filename;
std::replace(m_model_filename.begin(), m_model_filename.end(), '\\', '/');
//BBS: add part plate logic
m_extended_bounding_box = this->calc_extended_bounding_box(false);

View File

@ -4993,8 +4993,10 @@ void PartPlateList::update_logo_texture_filename(const std::string &texture_file
};
if (!texture_filename.empty() && !check_texture(texture_filename)) {
BOOST_LOG_TRIVIAL(error) << "Unable to load bed texture: " << texture_filename;
} else
} else {
m_logo_texture_filename = texture_filename;
std::replace(m_logo_texture_filename.begin(), m_logo_texture_filename.end(), '\\', '/');
}
}
/*slice related functions*/