mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
Fixed camera shifting after generating gcode
This commit is contained in:
parent
ac904b2731
commit
7375f6a6f5
4 changed files with 17 additions and 1 deletions
|
@ -2211,26 +2211,31 @@ void _3DScene::_update_gcode_volumes_visibility(const GCodePreviewData& preview_
|
|||
case GCodePreviewVolumeIndex::Travel:
|
||||
{
|
||||
volume->is_active = preview_data.travel.is_visible;
|
||||
volume->zoom_to_volumes = false;
|
||||
break;
|
||||
}
|
||||
case GCodePreviewVolumeIndex::Retraction:
|
||||
{
|
||||
volume->is_active = preview_data.retraction.is_visible;
|
||||
volume->zoom_to_volumes = false;
|
||||
break;
|
||||
}
|
||||
case GCodePreviewVolumeIndex::Unretraction:
|
||||
{
|
||||
volume->is_active = preview_data.unretraction.is_visible;
|
||||
volume->zoom_to_volumes = false;
|
||||
break;
|
||||
}
|
||||
case GCodePreviewVolumeIndex::Shell:
|
||||
{
|
||||
volume->is_active = preview_data.shell.is_visible;
|
||||
volume->zoom_to_volumes = false;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
volume->is_active = false;
|
||||
volume->zoom_to_volumes = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue