mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 04:31:58 +08:00
initialize $self->{move_target} before calling functions on it.
This commit is contained in:
parent
43c203a8e0
commit
ed0173364f
@ -67,6 +67,10 @@ sub new {
|
|||||||
$settings_sizer->Add($self->{settings_panel}, 1, wxEXPAND | wxALL, 0);
|
$settings_sizer->Add($self->{settings_panel}, 1, wxEXPAND | wxALL, 0);
|
||||||
|
|
||||||
my $optgroup_movers;
|
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(
|
$optgroup_movers = $self->{optgroup_movers} = Slic3r::GUI::OptionsGroup->new(
|
||||||
parent => $self,
|
parent => $self,
|
||||||
title => 'Move',
|
title => 'Move',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user