Skip to content

Commit 2e29d79

Browse files
author
remi durand
committed
Merge branch 'merill-merge'
2 parents dfc9671 + 6da4c4e commit 2e29d79

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
voron_design_cube_v6.amf is under GPL V3, made by vorondesign (https://github.com/VoronDesign/Voron-2)
1+
voron_design_cube_v7.amf is under GPL V3, made by vorondesign (https://github.com/VoronDesign/Voron-2)
22
xyzCalibration_cube is under CC BY-SA 3.0, made by iDig3Dprinting (https://www.thingiverse.com/thing:1278865)
-35.1 KB
Binary file not shown.
36.7 KB
Binary file not shown.

src/libslic3r/Fill/Fill.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ std::vector<SurfaceFill> group_fills(const Layer &layer)
219219
params.anchor_length_max = float(region_config.infill_anchor_max);
220220
if (region_config.infill_anchor_max.percent)
221221
params.anchor_length_max = float(params.anchor_length_max * 0.01 * params.spacing);
222+
params.anchor_length = std::min(params.anchor_length, params.anchor_length_max);
222223
}
223224

224225
auto it_params = set_surface_params.find(params);

src/slic3r/GUI/3DScene.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ void GLIndexedVertexArray::render(
289289
const float GLVolume::SELECTED_COLOR[4] = { 0.0f, 1.0f, 0.0f, 1.0f };
290290
const float GLVolume::HOVER_SELECT_COLOR[4] = { 0.4f, 0.9f, 0.1f, 1.0f };
291291
const float GLVolume::HOVER_DESELECT_COLOR[4] = { 1.0f, 0.75f, 0.75f, 1.0f };
292-
const float GLVolume::OUTSIDE_COLOR[4] = { 0.0f, 0.38f, 0.8f, 1.0f };
293-
const float GLVolume::SELECTED_OUTSIDE_COLOR[4] = { 0.19f, 0.58f, 1.0f, 1.0f };
292+
const float GLVolume::OUTSIDE_COLOR[4] = { 0.867f, 0.173f, 0.0f, 1.0f }; //dark red
293+
const float GLVolume::SELECTED_OUTSIDE_COLOR[4] = { 1.0f, 0.239f, 0.0f, 1.0f }; //red
294294
const float GLVolume::DISABLED_COLOR[4] = { 0.25f, 0.25f, 0.25f, 1.0f };
295295
const float GLVolume::MODEL_COLOR[4][4] = {
296296
{ 1.0f, 1.0f, 0.0f, 1.f },

src/slic3r/GUI/CalibrationCubeDialog.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CalibrationCubeDialog : public CalibrationAbstractDialog
1616
protected:
1717
void create_buttons(wxStdDialogButtonSizer* sizer) override;
1818
void create_geometry(std::string cube_path);
19-
void create_geometry_voron(wxCommandEvent& event_args) { create_geometry("voron_design_cube_v6.amf"); }
19+
void create_geometry_voron(wxCommandEvent& event_args) { create_geometry("voron_design_cube_v7.amf"); }
2020
void create_geometry_standard(wxCommandEvent& event_args) { create_geometry("xyzCalibration_cube.amf"); }
2121

2222
wxComboBox* scale;

src/slic3r/GUI/GUI_Preview.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -741,11 +741,14 @@ void Preview::update_layers_slider(const std::vector<double>& layers_z, bool kee
741741

742742
Plater* plater = wxGetApp().plater();
743743
CustomGCode::Info ticks_info_from_model = plater->model().custom_gcode_per_print_z;
744-
//add z-shift from gcode output
745-
const float z_shift = wxGetApp().preset_bundle->printers.get_edited_preset().config.opt_float("z_offset");
746-
if (can_display_gcode() && z_shift != 0) {
747-
for (CustomGCode::Item& tick : ticks_info_from_model.gcodes) {
748-
tick.print_z += z_shift;
744+
if ( wxGetApp().preset_bundle->printers.get_edited_preset().config.option("z_offset") != nullptr )
745+
{
746+
//add z-shift from gcode output
747+
const float z_shift = wxGetApp().preset_bundle->printers.get_edited_preset().config.opt_float("z_offset");
748+
if (can_display_gcode() && z_shift != 0) {
749+
for (CustomGCode::Item& tick : ticks_info_from_model.gcodes) {
750+
tick.print_z += z_shift;
751+
}
749752
}
750753
}
751754
//check incoherencies

0 commit comments

Comments
 (0)