diff --git a/src/slic3r/GUI/3DBed.cpp b/src/slic3r/GUI/3DBed.cpp index db283c508..27f5b91f2 100644 --- a/src/slic3r/GUI/3DBed.cpp +++ b/src/slic3r/GUI/3DBed.cpp @@ -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); diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 916b6075a..3642412c9 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -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*/