mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 20:15:52 +08:00
Improving Zoom by Keyboard Shortcut
removing unnecessary lines
This commit is contained in:
parent
75291772ce
commit
489059f827
@ -2439,16 +2439,12 @@ sub zoom{
|
|||||||
if($currentSelection == 0){
|
if($currentSelection == 0){
|
||||||
$self->{canvas3D}->zoom($direction) if($self->{canvas3D});
|
$self->{canvas3D}->zoom($direction) if($self->{canvas3D});
|
||||||
}
|
}
|
||||||
# elsif($currentSelection == 1) { #2D platter should zomobe applied here or not ?
|
|
||||||
# }
|
|
||||||
elsif($currentSelection == 2){ #3d Preview tab
|
elsif($currentSelection == 2){ #3d Preview tab
|
||||||
$self->{preview3D}->canvas->zoom($direction) if($self->{preview3D});
|
$self->{preview3D}->canvas->zoom($direction) if($self->{preview3D});
|
||||||
}
|
}
|
||||||
elsif($currentSelection == 3) { #2D toolpaths tab
|
elsif($currentSelection == 3) { #2D toolpaths tab
|
||||||
$self->{toolpaths2D}->{canvas}->zoom($direction) if($self->{toolpaths2D});
|
$self->{toolpaths2D}->{canvas}->zoom($direction) if($self->{toolpaths2D});
|
||||||
}
|
}
|
||||||
else {#Do Nothing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package Slic3r::GUI::Plater::DropTarget;
|
package Slic3r::GUI::Plater::DropTarget;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user