mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 16:22:02 +08:00
SPE-1919: Fixed missing update of out of bed state when changing part type
This commit is contained in:
parent
43e023f372
commit
ef1d9950dd
@ -1528,6 +1528,8 @@ bool GLCanvas3D::check_volumes_outside_state(GLVolumeCollection& volumes, ModelI
|
||||
contained_min_one |= !volume->is_outside;
|
||||
}
|
||||
}
|
||||
else if (volume->is_modifier)
|
||||
volume->is_outside = false;
|
||||
}
|
||||
|
||||
for (unsigned int vol_idx = 0; vol_idx < volumes.volumes.size(); ++vol_idx) {
|
||||
@ -2371,6 +2373,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
|
||||
volume->extruder_id = extruder_id;
|
||||
|
||||
volume->is_modifier = !mvs->model_volume->is_model_part();
|
||||
volume->shader_outside_printer_detection_enabled = mvs->model_volume->is_model_part();
|
||||
volume->set_color(color_from_model_volume(*mvs->model_volume));
|
||||
// force update of render_color alpha channel
|
||||
volume->set_render_color(volume->color.is_transparent());
|
||||
|
Loading…
x
Reference in New Issue
Block a user