From ed0173364f56ce0b508e3f19e6e6bdebf71cdf77 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 1 Jan 2017 23:43:13 -0600 Subject: [PATCH] initialize $self->{move_target} before calling functions on it. --- lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm index 94cbe931a..1898ac6a0 100644 --- a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm +++ b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm @@ -67,6 +67,10 @@ sub new { $settings_sizer->Add($self->{settings_panel}, 1, wxEXPAND | wxALL, 0); my $optgroup_movers; + # initialize the movement target before it's used. + # on Windows this causes a segfault due to calling distance_to() + # on the object. + $self->{move_target} = Slic3r::Pointf3->new; $optgroup_movers = $self->{optgroup_movers} = Slic3r::GUI::OptionsGroup->new( parent => $self, title => 'Move',