mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
Added "change position" from modification pane
This commit is contained in:
parent
72b5da952d
commit
caaacb4c4f
4 changed files with 52 additions and 5 deletions
|
@ -692,14 +692,15 @@ void Sidebar::update_objects_list_extruder_column(int extruders_count)
|
|||
void Sidebar::show_info_sizer()
|
||||
{
|
||||
if (!p->plater->is_single_full_object_selection() ||
|
||||
m_mode < ConfigMenuModeExpert ) {
|
||||
m_mode < ConfigMenuModeExpert ||
|
||||
p->plater->model().objects.empty()) {
|
||||
p->object_info->Show(false);
|
||||
return;
|
||||
}
|
||||
|
||||
int obj_idx = p->plater->get_selected_object_idx();
|
||||
|
||||
const ModelObject* model_object = (*wxGetApp().model_objects())[obj_idx];
|
||||
const ModelObject* model_object = p->plater->model().objects[obj_idx];
|
||||
// hack to avoid crash when deleting the last object on the bed
|
||||
if (model_object->volumes.empty())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue