mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-06 14:57:50 -07:00
FIX:ban reload scene in preview by left ui
jira: STUDIO-9228 Change-Id: I8a9a6eb8a7e81cc3cd912dcbc87b59fab4887245 (cherry picked from commit 0098b8a347e9d36b4ee45df126dffd87ce6b4bdc)
This commit is contained in:
parent
a6fd63ab29
commit
ac5f49ad73
2 changed files with 4 additions and 1 deletions
|
|
@ -1427,6 +1427,9 @@ void ObjectList::list_manipulation(const wxPoint& mouse_pos, bool evt_context_me
|
|||
else if (col_num == colSinking) {
|
||||
Plater * plater = wxGetApp().plater();
|
||||
GLCanvas3D *cnv = plater->canvas3D();
|
||||
if (cnv->get_canvas_type() == GLCanvas3D::ECanvasType::CanvasPreview) {//ban reload_scene in Preview scene
|
||||
return;
|
||||
}
|
||||
int obj_idx, vol_idx;
|
||||
get_selected_item_indexes(obj_idx, vol_idx, item);
|
||||
if (obj_idx != -1) {
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ bool Preview::init(wxWindow* parent, Bed3D& bed, Model* model)
|
|||
m_canvas->set_process(m_process);
|
||||
m_canvas->set_type(GLCanvas3D::ECanvasType::CanvasPreview);
|
||||
m_canvas->enable_legend_texture(true);
|
||||
m_canvas->enable_dynamic_background(true);
|
||||
|
||||
//BBS: GUI refactor: GLToolbar
|
||||
if (wxGetApp().is_editor()) {
|
||||
m_canvas->enable_select_plate_toolbar(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue