mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-02 03:50:41 +08:00
Mostly implemented mouseup on 2D player.
Someting through on_instances_moved causes an uncaught exception.
This commit is contained in:
parent
9c02f3ab80
commit
56a9915e62
@ -210,6 +210,12 @@ void Plate2D::mouse_down(wxMouseEvent& e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Plate2D::mouse_up(wxMouseEvent& e) {
|
void Plate2D::mouse_up(wxMouseEvent& e) {
|
||||||
|
if (e.LeftUp()) {
|
||||||
|
//if (this->drag_object.obj != -1 && this->drag_object.inst != -1) this->on_instances_moved();
|
||||||
|
this->drag_start_pos = wxPoint(-1, -1);
|
||||||
|
this->drag_object = {-1, -1};
|
||||||
|
this->SetCursor(*wxSTANDARD_CURSOR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
void Plate2D::mouse_dclick(wxMouseEvent& e) {
|
void Plate2D::mouse_dclick(wxMouseEvent& e) {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user