Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: use Lift-z option for 2. extruder #3385 #3392

Merged
merged 4 commits into from
Nov 22, 2016

Conversation

platsch
Copy link
Member

@platsch platsch commented Jul 1, 2016

Bugfix for #3385

@lordofhyphens
Copy link
Member

Looks good to me, earlier concern seems to be a non-issue w/r/t accidental head crashes.

Could you augment /~https://github.com/alexrj/Slic3r/blob/master/t/retraction.t#L204 and add a regression test to make sure that it uses the selected extruder? Probably just a copy/paste with two different extruders defined instead of just one define the current extruder to be 2 and check to make sure it matches :)

@platsch
Copy link
Member Author

platsch commented Jul 6, 2016

Yes, it's not forgotten, just give me a few days to find the time :-)

@lordofhyphens
Copy link
Member

Thanks :) I know how precious time is.

"Nothing unreal exists." - Kiri-kin-tha's First Law of Metaphysics.

On Wed, Jul 6, 2016 at 11:55 AM, platsch notifications@github.com wrote:

Yes, it's not forgotten, just give me a few days to find the time :-)


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#3392 (comment), or mute
the thread
/~https://github.com/notifications/unsubscribe/AAB8CpyTpV7ZP9W2nSNvxINfX5retdb3ks5qS94dgaJpZM4JC_YG
.

@lordofhyphens
Copy link
Member

Also, could you rebase this back onto master? It'd be nice to have the travis build passing :)

@platsch
Copy link
Member Author

platsch commented Jul 19, 2016

Ok, I added the testcase you suggested as an additional case. Since this doesn't check for the actual values, I also modified the 1. test /~https://github.com/alexrj/Slic3r/blob/master/t/retraction.t#L52 to keep track of the lift value between extruder switches.

Rebased to master, compiling and testing runs fine, but I'm not able to execute Slic3r, fails with Caught C++ exception of unknown type at /Slic3r/lib/Slic3r/Config.pm line 92. looks like 30139fd breaks something...

@lordofhyphens
Copy link
Member

lordofhyphens commented Jul 19, 2016 via email

@platsch
Copy link
Member Author

platsch commented Jul 19, 2016

Ah, it was an option in my config, leftover from testing a different branch. Looks good, think you can merge the PR.

@lordofhyphens
Copy link
Member

Any comments/concerns, @alexrj, about this PR?

@lordofhyphens
Copy link
Member

lordofhyphens commented Jul 19, 2016

Had forgotten to check the changes in my editor to make sure that spaces were used instead of tabs, everything looks good+clean.

@alexrj Unless there's a specific reason to use the old behavior (all retraction settings using the first extruder's settings) that hasn't been considered, I recommend that this get pulled at the earliest opportunity as a squash merge.

@@ -228,7 +228,7 @@ use Slic3r::Test qw(_eq);
ok !!@lifted_at, 'lift takes place when above/below == 0';

$config->set('retract_lift_above', [5, 6]);
$config->set('retract_lift_below', [15, 16]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why this changed in the PR branch?

@platsch
Copy link
Member Author

platsch commented Aug 26, 2016

Yes. With the old parameter set [15, 16]the retract_lift_below test doesn't fail for the second extruder even if only the first extruder config is used incorrectly. The test value for the second extruder must be lower for the below test and higher for the above test to test for the correct behaviour of the second extruder.

bubnikv added a commit to prusa3d/PrusaSlicer that referenced this pull request Sep 26, 2016
@alranel alranel merged commit 98bf102 into slic3r:master Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants