mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-06 03:36:34 +08:00
Initialize SvgFile object in optional different way.
This commit is contained in:
parent
6bd9c50c7a
commit
0ff255eadc
@ -1490,8 +1490,9 @@ void GLGizmoSVG::draw_filename(){
|
|||||||
std::string new_path = choose_svg_file();
|
std::string new_path = choose_svg_file();
|
||||||
if (!new_path.empty()) {
|
if (!new_path.empty()) {
|
||||||
file_changed = true;
|
file_changed = true;
|
||||||
m_volume_shape.svg_file = {}; // clear data
|
EmbossShape::SvgFile svg_file_new;
|
||||||
m_volume_shape.svg_file->path = new_path;
|
svg_file_new.path = new_path;
|
||||||
|
m_volume_shape.svg_file = svg_file_new; // clear data
|
||||||
}
|
}
|
||||||
} else if (ImGui::IsItemHovered()) {
|
} else if (ImGui::IsItemHovered()) {
|
||||||
ImGui::SetTooltip("%s", _u8L("Change to another .svg file").c_str());
|
ImGui::SetTooltip("%s", _u8L("Change to another .svg file").c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user