mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed toolbar update when switching between 3d view/preview using tab or ctrl+5/6
This commit is contained in:
parent
5006633221
commit
1d3d87c2b9
2 changed files with 5 additions and 3 deletions
|
@ -983,7 +983,7 @@ GLVolumesWithZList volumes_to_render(const GLVolumePtrs& volumes, GLVolumeCollec
|
||||||
}
|
}
|
||||||
|
|
||||||
std::sort(list.begin(), list.end(),
|
std::sort(list.begin(), list.end(),
|
||||||
[](const GLVolumeWithZ& v1, const GLVolumeWithZ& v2) -> bool { return v1.second < v2.second; }
|
[](const GLVolumeWithZ& v1, const GLVolumeWithZ& v2) -> bool { return v1.second < v2.second; }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1301,9 +1301,11 @@ void Plater::priv::select_view_3D(const std::string& name)
|
||||||
else if (name == "Preview")
|
else if (name == "Preview")
|
||||||
set_current_panel(preview);
|
set_current_panel(preview);
|
||||||
|
|
||||||
#if !ENABLE_TOOLBAR_BACKGROUND_TEXTURE
|
#if ENABLE_TOOLBAR_BACKGROUND_TEXTURE
|
||||||
|
view_toolbar.select_item(name);
|
||||||
|
#else
|
||||||
view_toolbar.set_selection(name);
|
view_toolbar.set_selection(name);
|
||||||
#endif // !ENABLE_TOOLBAR_BACKGROUND_TEXTURE
|
#endif // ENABLE_TOOLBAR_BACKGROUND_TEXTURE
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void Plater::priv::select_view(const std::string& direction)
|
void Plater::priv::select_view(const std::string& direction)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue