mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-02 19:44:00 -06:00
Added logging when bed texture/model is not found
This commit is contained in:
parent
79784d1a2e
commit
ed7ebf15d9
2 changed files with 8 additions and 3 deletions
|
@ -2293,7 +2293,7 @@ void PrintObject::project_and_append_custom_facets(
|
||||||
const indexed_triangle_set custom_facets = seam
|
const indexed_triangle_set custom_facets = seam
|
||||||
? mv->seam_facets.get_facets_strict(*mv, type)
|
? mv->seam_facets.get_facets_strict(*mv, type)
|
||||||
: mv->supported_facets.get_facets_strict(*mv, type);
|
: mv->supported_facets.get_facets_strict(*mv, type);
|
||||||
if (! custom_facets.indices.empty())
|
if (! custom_facets.indices.empty()) {
|
||||||
if (seam)
|
if (seam)
|
||||||
project_triangles_to_slabs(this->layers(), custom_facets,
|
project_triangles_to_slabs(this->layers(), custom_facets,
|
||||||
(this->trafo_centered() * mv->get_matrix()).cast<float>(),
|
(this->trafo_centered() * mv->get_matrix()).cast<float>(),
|
||||||
|
@ -2310,6 +2310,7 @@ void PrintObject::project_and_append_custom_facets(
|
||||||
for (size_t i = 0; i < out.size(); ++ i)
|
for (size_t i = 0; i < out.size(); ++ i)
|
||||||
append(out[i], std::move(projected[i]));
|
append(out[i], std::move(projected[i]));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -163,12 +163,16 @@ bool Bed3D::set_shape(const Pointfs& shape, const std::string& custom_texture, c
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string texture_filename = custom_texture.empty() ? texture : custom_texture;
|
std::string texture_filename = custom_texture.empty() ? texture : custom_texture;
|
||||||
if (!check_texture(texture_filename))
|
if (! texture_filename.empty() && ! check_texture(texture_filename)) {
|
||||||
|
BOOST_LOG_TRIVIAL(error) << "Unable to load bed texture: " << texture_filename;
|
||||||
texture_filename.clear();
|
texture_filename.clear();
|
||||||
|
}
|
||||||
|
|
||||||
std::string model_filename = custom_model.empty() ? model : custom_model;
|
std::string model_filename = custom_model.empty() ? model : custom_model;
|
||||||
if (!check_model(model_filename))
|
if (! model_filename.empty() && ! check_model(model_filename)) {
|
||||||
|
BOOST_LOG_TRIVIAL(error) << "Unable to load bed model: " << model_filename;
|
||||||
model_filename.clear();
|
model_filename.clear();
|
||||||
|
}
|
||||||
|
|
||||||
if (m_shape == shape && m_type == type && m_texture_filename == texture_filename && m_model_filename == model_filename)
|
if (m_shape == shape && m_type == type && m_texture_filename == texture_filename && m_model_filename == model_filename)
|
||||||
// No change, no need to update the UI.
|
// No change, no need to update the UI.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue