Out of bed detection - Volume colors changed while dragging them

This commit is contained in:
Enrico Turri 2018-03-13 14:37:59 +01:00
parent d91e35f820
commit 523b297738
2 changed files with 1 additions and 1 deletions

View File

@ -1311,6 +1311,7 @@ sub Render {
if ($self->enable_picking) {
$self->mark_volumes_for_layer_height;
$self->volumes->set_print_box($self->bed_bounding_box->x_min, $self->bed_bounding_box->y_min, 0.0, $self->bed_bounding_box->x_max, $self->bed_bounding_box->y_max, $self->{config}->get('max_print_height'));
$self->volumes->update_outside_state($self->{config}, 0);
}
$self->{plain_shader}->enable if $self->{plain_shader};
$self->volumes->render_VBOs;

View File

@ -216,7 +216,6 @@ sub reload_scene {
{
if (!$self->{model}->fits_print_volume($self->{config})) {
$self->set_warning_enabled(1);
$self->volumes->update_outside_state($self->{config}, 0);
Slic3r::GUI::_3DScene::generate_warning_texture(L("Detected object outside print volume"));
} else {
$self->set_warning_enabled(0);