mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
Fix checking is volume svg (#3129)
(cherry picked from commit prusa3d/PrusaSlicer@f31d7f1d8c) Co-authored-by: Filip Sykala - NTB T15p <Filip.Sykala@Prusa3D.cz>
This commit is contained in:
parent
1e7300a476
commit
7b6dbfdbcc
1 changed files with 2 additions and 1 deletions
|
@ -218,7 +218,7 @@ bool GLGizmoSVG::create_volume(std::string_view svg_file, const Vec2d &mouse_pos
|
|||
}
|
||||
|
||||
bool GLGizmoSVG::is_svg(const ModelVolume &volume) {
|
||||
return volume.emboss_shape.has_value();
|
||||
return volume.emboss_shape.has_value() && volume.emboss_shape->svg_file.has_value();
|
||||
}
|
||||
|
||||
bool GLGizmoSVG::is_svg_object(const ModelVolume &volume) {
|
||||
|
@ -1172,6 +1172,7 @@ void GLGizmoSVG::set_volume_by_selection()
|
|||
// calculate scale for height and depth inside of scaled object instance
|
||||
calculate_scale(); // must be before calculation of tesselation
|
||||
|
||||
// checking that exist is inside of function "is_svg"
|
||||
EmbossShape &es = *volume->emboss_shape;
|
||||
EmbossShape::SvgFile &svg_file = *es.svg_file;
|
||||
if (svg_file.image == nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue