mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-11 03:32:24 +00:00
ENABLE_GCODE_VIEWER_AS_STATE -> Do not show warning texture in gcode viewer mode
This commit is contained in:
1 parent
88670b48fd
commit
7207f215e9
1 file changed
+12
-2
@@ -7110,8 +7110,18 @@ void GLCanvas3D::_show_warning_texture_if_needed(WarningTexture::Warning warning
|
|||||||
show = _is_any_volume_outside();
|
show = _is_any_volume_outside();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BoundingBoxf3 test_volume = (m_config != nullptr) ? print_volume(*m_config) : BoundingBoxf3();
|
#if ENABLE_GCODE_VIEWER_AS_STATE
|
||||||
show = (test_volume.radius() > 0.0) ? !test_volume.contains(m_gcode_viewer.get_bounding_box()) : false;
|
if (wxGetApp().mainframe->get_mode() != MainFrame::EMode::GCodeViewer)
|
||||||
|
{
|
||||||
|
BoundingBoxf3 test_volume = (m_config != nullptr) ? print_volume(*m_config) : BoundingBoxf3();
|
||||||
|
const BoundingBoxf3& paths_volume = m_gcode_viewer.get_bounding_box();
|
||||||
|
if (test_volume.radius() > 0.0 && paths_volume.radius() > 0.0)
|
||||||
|
show = !test_volume.contains(paths_volume);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
BoundingBoxf3 test_volume = (m_config != nullptr) ? print_volume(*m_config) : BoundingBoxf3();
|
||||||
|
show = (test_volume.radius() > 0.0) ? !test_volume.contains(m_gcode_viewer.get_bounding_box()) : false;
|
||||||
|
#endif // ENABLE_GCODE_VIEWER_AS_STATE
|
||||||
}
|
}
|
||||||
_set_warning_texture(warning, show);
|
_set_warning_texture(warning, show);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in new issue
Block a user