mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 19:01:02 +00:00
Add X-Ray view mode to 3D viewport (#15770)
This commit is contained in:
@@ -6827,6 +6827,7 @@ struct Plater::priv
|
||||
bool show_render_statistic_dialog{ false };
|
||||
bool show_wireframe{ false };
|
||||
bool wireframe_enabled{ true };
|
||||
bool show_xray{ false };
|
||||
|
||||
static const std::regex pattern_bundle;
|
||||
static const std::regex pattern_3mf;
|
||||
@@ -22399,6 +22400,16 @@ bool Plater::is_wireframe_enabled() const
|
||||
return p->wireframe_enabled;
|
||||
}
|
||||
|
||||
void Plater::toggle_show_xray()
|
||||
{
|
||||
p->show_xray = !p->show_xray;
|
||||
}
|
||||
|
||||
bool Plater::is_show_xray() const
|
||||
{
|
||||
return p->show_xray;
|
||||
}
|
||||
|
||||
|
||||
/*Plater::TakeSnapshot::TakeSnapshot(Plater *plater, const std::string &snapshot_name)
|
||||
: TakeSnapshot(plater, from_u8(snapshot_name)) {}
|
||||
|
||||
Reference in New Issue
Block a user