From 4078bb0476c8556124790171b753316ab8a5e939 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 6 Dec 2012 10:54:28 +0100 Subject: [PATCH] Fix error when vibration limit is disabled --- lib/Slic3r/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index a5c46b2ea..6a45b61cc 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -514,7 +514,7 @@ sub _limit_frequency { my $self = shift; my ($point) = @_; - return if $Slic3r::Config->vibration_limit == 0; + return '' if $Slic3r::Config->vibration_limit == 0; my $min_time = 1 / ($Slic3r::Config->vibration_limit * 60); # in minutes # calculate the move vector and move direction