Skip to content

Commit a10cf71

Browse files
Merge branch 'master' into merill_thinwall
2 parents 79db85d + 28d5e87 commit a10cf71

File tree

100 files changed

+2478
-709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2478
-709
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ When possible, please include the following information when [reporting an issue
2121
* STL, OBJ or AMF input file (please make sure the input file is not broken, e.g. non-manifold, before reporting a bug)
2222
* a screenshot of the G-code layer with the issue (e.g. using [Pronterface](https://github.com/kliment/Printrun) or preferably the internal preview tab in Slic3r).
2323
* If the issue is a request for a new feature, be ready to explain why you think it's needed.
24-
* Doing more prepatory work on your end makes it more likely it'll get done. This includes the "how" it can be done in addition to the "what".
24+
* Doing more preparatory work on your end makes it more likely it'll get done. This includes the "how" it can be done in addition to the "what".
2525
* Define the "What" as strictly as you can. Consider what might happen with different infills than simple rectilinear.
2626

2727
Please make sure only to include one issue per report. If you encounter multiple, unrelated issues, please report them as such.

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,18 @@ matrix:
9797
after_success:
9898
- if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/osx/travis-deploy-main.sh || travis_terminate 1; fi
9999

100-
- os: osx
101-
osx_image: xcode9.4
102-
env:
103-
- TARGET=cpp
104-
- CACHE=$HOME/cache
105-
cache:
106-
ccache: true
107-
directories:
108-
- /usr/local/Homebrew
109-
- $HOME/cache
110-
- $HOME/Library/Caches/Homebrew
100+
# OSX is erroring out consistently for C++, remove and debug
101+
# - os: osx
102+
# osx_image: xcode9.4
103+
# env:
104+
# - TARGET=cpp
105+
# - CACHE=$HOME/cache
106+
# cache:
107+
# ccache: true
108+
# directories:
109+
# - /usr/local/Homebrew
110+
# - $HOME/cache
111+
# - $HOME/Library/Caches/Homebrew
111112

112113
env:
113114
global:

lib/Slic3r.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ sub thread_cleanup {
248248
*Slic3r::Surface::DESTROY = sub {};
249249
*Slic3r::Surface::Collection::DESTROY = sub {};
250250
*Slic3r::TriangleMesh::DESTROY = sub {};
251+
*Slic3r::TransformationMatrix::DESTROY = sub {};
251252
return undef; # this prevents a "Scalars leaked" warning
252253
}
253254

lib/Slic3r/GCode/MotionPlanner.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use Slic3r::Geometry::Clipper qw(offset offset_ex diff_ex intersection_pl);
1414
has '_inner_margin' => (is => 'ro', default => sub { scale 1 });
1515
has '_outer_margin' => (is => 'ro', default => sub { scale 2 });
1616

17-
# this factor weigths the crossing of a perimeter
17+
# this factor weighs the crossing of a perimeter
1818
# vs. the alternative path. a value of 5 means that
1919
# a perimeter will be crossed if the alternative path
2020
# is >= 5x the length of the straight line we could

lib/Slic3r/GCode/PressureRegulator.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sub process {
3939
# This is a print move.
4040
my $F = $args->{F} // $reader->F;
4141
if ($F != $self->_last_print_F || ($F == $self->_last_print_F && $self->_advance == 0)) {
42-
# We are setting a (potentially) new speed or a discharge event happend since the last speed change, so we calculate the new advance amount.
42+
# We are setting a (potentially) new speed or a discharge event happened since the last speed change, so we calculate the new advance amount.
4343

4444
# First calculate relative flow rate (mm of filament over mm of travel)
4545
my $rel_flow_rate = $info->{dist_E} / $info->{dist_XY};

lib/Slic3r/GUI.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ our $Settings = {
9696
nudge_val => 1,
9797
rotation_controls => 'z',
9898
reload_hide_dialog => 0,
99-
reload_behavior => 0
99+
reload_behavior => 0,
100+
reload_preserve_trafo => 1
100101
},
101102
};
102103

lib/Slic3r/GUI/3DScene.pm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ sub new {
9696
# wxWidgets expect the attrib list to be ended by zero.
9797
push(@$attrib, 0);
9898

99-
# we request a depth buffer explicitely because it looks like it's not created by
99+
# we request a depth buffer explicitly because it looks like it's not created by
100100
# default on Linux, causing transparency issues
101101
my $self = $class->SUPER::new($parent, -1, Wx::wxDefaultPosition, Wx::wxDefaultSize, 0, "", $attrib);
102102

103103
if (Wx::wxVERSION >= 3.000003) {
104104
# Wx 3.0.3 contains an ugly hack to support some advanced OpenGL attributes through the attribute list.
105105
# The attribute list is transferred between the wxGLCanvas and wxGLContext constructors using a single static array s_wglContextAttribs.
106-
# Immediatelly force creation of the OpenGL context to consume the static variable s_wglContextAttribs.
106+
# Immediately force creation of the OpenGL context to consume the static variable s_wglContextAttribs.
107107
$self->GetContext();
108108
}
109109

@@ -1331,8 +1331,7 @@ sub load_object {
13311331
my $volume = $model_object->volumes->[$volume_idx];
13321332
foreach my $instance_idx (@$instance_idxs) {
13331333
my $instance = $model_object->instances->[$instance_idx];
1334-
my $mesh = $volume->mesh->clone;
1335-
$instance->transform_mesh($mesh);
1334+
my $mesh = $volume->get_transformed_mesh($instance);
13361335

13371336
my $color_idx;
13381337
if ($self->color_by eq 'volume') {

lib/Slic3r/GUI/BedShapeDialog.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The bed shape dialog.
2-
# The dialog opens from Print Settins tab -> Bed Shape: Set...
2+
# The dialog opens from Print Settings tab -> Bed Shape: Set...
33

44
package Slic3r::GUI::BedShapeDialog;
55
use strict;

lib/Slic3r/GUI/ColorScheme.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ our $DEFAULT_COLORSCHEME = 1;
1313
our $SOLID_BACKGROUNDCOLOR = 0;
1414
our @SELECTED_COLOR = (0, 1, 0);
1515
our @HOVER_COLOR = (0.4, 0.9, 0); # Hover over Model
16-
our @TOP_COLOR = (10/255,98/255,144/255); # TOP Backgroud color
17-
our @BOTTOM_COLOR = (0,0,0); # BOTTOM Backgroud color
16+
our @TOP_COLOR = (10/255,98/255,144/255); # TOP Background color
17+
our @BOTTOM_COLOR = (0,0,0); # BOTTOM Background color
1818
our @BACKGROUND_COLOR = @TOP_COLOR; # SOLID background color
1919
our @GRID_COLOR = (0.2, 0.2, 0.2, 0.4); # Grid color
2020
our @GROUND_COLOR = (0.8, 0.6, 0.5, 0.4); # Ground or Plate color
@@ -130,7 +130,7 @@ sub getSolarized { # add this name to Preferences.pm
130130
@BED_SKIRT = map { ceil($_ * 255) } @COLOR_BASE01; # Brim/Skirt
131131
@BED_CLEARANCE = map { ceil($_ * 255) } @COLOR_BLUE; # not sure what that does
132132
@BED_DARK = map { ceil($_ * 255) } @COLOR_BASE01; # not sure what that does
133-
@BACKGROUND255 = map { ceil($_ * 255) } @BACKGROUND_COLOR; # Backgroud color, this time RGB
133+
@BACKGROUND255 = map { ceil($_ * 255) } @BACKGROUND_COLOR; # Background color, this time RGB
134134

135135
# 2DToolpaths.pm colors : LAYERS Tab
136136
@TOOL_DARK = @COLOR_BASE01; # Brim/Skirt

0 commit comments

Comments
 (0)