mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
FIX: click left plate in preview,camera is not correct
Change-Id: If1459050c2f929f8ecdfd7ca22bd31c11de01fed (cherry picked from commit a2df7c9d1f2b3c65f02f94d7fa73417adab0c6a2)
This commit is contained in:
@@ -170,7 +170,11 @@ ObjectList::ObjectList(wxWindow* parent) :
|
|||||||
|
|
||||||
ObjectDataViewModelNode* sel_node = (ObjectDataViewModelNode*)event.GetItem().GetID();
|
ObjectDataViewModelNode* sel_node = (ObjectDataViewModelNode*)event.GetItem().GetID();
|
||||||
if (sel_node && (sel_node->GetType() & ItemType::itPlate)) {
|
if (sel_node && (sel_node->GetType() & ItemType::itPlate)) {
|
||||||
wxGetApp().plater()->select_plate(sel_node->GetPlateIdx());
|
if (wxGetApp().plater()->is_preview_shown()) {
|
||||||
|
wxGetApp().plater()->select_sliced_plate(sel_node->GetPlateIdx());
|
||||||
|
} else {
|
||||||
|
wxGetApp().plater()->select_plate(sel_node->GetPlateIdx());
|
||||||
|
}
|
||||||
wxGetApp().plater()->deselect_all();
|
wxGetApp().plater()->deselect_all();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user