mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 04:21:59 +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);
|
||||
|
||||
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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user