ENH: some fix of previous patch
some fix to Ib37896f9101d93ca63c7edb0b1e6328045a5ddb3 I4b5c8e158b073b302db6faad77bb8ca0f70f766a Change-Id: Iec62a4df45159bac3db63c48feef16ec1aa35ae7
This commit is contained in:
parent
acdc8077e8
commit
6fb06eb779
|
@ -829,6 +829,7 @@ public:
|
||||||
bool is_support_filament_setting_inprinting{false};
|
bool is_support_filament_setting_inprinting{false};
|
||||||
bool is_support_agora{false};
|
bool is_support_agora{false};
|
||||||
bool is_support_upgrade_kit{false};
|
bool is_support_upgrade_kit{false};
|
||||||
|
bool is_support_filament_setting_inprinting{false};
|
||||||
|
|
||||||
bool installed_upgrade_kit{false};
|
bool installed_upgrade_kit{false};
|
||||||
int nozzle_max_temperature = -1;
|
int nozzle_max_temperature = -1;
|
||||||
|
|
|
@ -6221,6 +6221,26 @@ void ObjectList::enable_layers_editing()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ObjectList::enable_layers_editing()
|
||||||
|
{
|
||||||
|
wxDataViewItemArray sels;
|
||||||
|
GetSelections(sels);
|
||||||
|
if (sels.IsEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
|
wxDataViewItem frst_item = sels[0];
|
||||||
|
|
||||||
|
ItemType type = m_objects_model->GetItemType(frst_item);
|
||||||
|
if (!(type & itObject))
|
||||||
|
return;
|
||||||
|
//take_snapshot("");
|
||||||
|
|
||||||
|
auto view3d = wxGetApp().plater()->get_view3D_canvas3D();
|
||||||
|
if (view3d != nullptr && m_objects_model->IsVariableHeight(frst_item)){
|
||||||
|
view3d->enable_layers_editing(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ModelObject* ObjectList::object(const int obj_idx) const
|
ModelObject* ObjectList::object(const int obj_idx) const
|
||||||
{
|
{
|
||||||
if (obj_idx < 0)
|
if (obj_idx < 0)
|
||||||
|
|
Loading…
Reference in New Issue