mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Test of update_extruder_in_config()
This commit is contained in:
parent
817fb5adb3
commit
92b578779e
2 changed files with 4 additions and 4 deletions
|
@ -1986,7 +1986,6 @@ sub on_config_change {
|
||||||
|
|
||||||
sub item_changed_selection{
|
sub item_changed_selection{
|
||||||
my ($self, $obj_idx) = @_;
|
my ($self, $obj_idx) = @_;
|
||||||
printf "BEGIN item_changed_selection : obj_idx = $obj_idx\n";
|
|
||||||
|
|
||||||
$self->{canvas}->Refresh;
|
$self->{canvas}->Refresh;
|
||||||
if ($self->{canvas3D}) {
|
if ($self->{canvas3D}) {
|
||||||
|
@ -1997,7 +1996,6 @@ sub item_changed_selection{
|
||||||
}
|
}
|
||||||
Slic3r::GUI::_3DScene::render($self->{canvas3D});
|
Slic3r::GUI::_3DScene::render($self->{canvas3D});
|
||||||
}
|
}
|
||||||
printf "END item_changed_selection";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub collect_selections {
|
sub collect_selections {
|
||||||
|
|
|
@ -1325,11 +1325,13 @@ void update_settings_value()
|
||||||
og->set_value("scale_y", 0);
|
og->set_value("scale_y", 0);
|
||||||
og->set_value("scale_z", 0);
|
og->set_value("scale_z", 0);
|
||||||
printf("return because of unselect\n");
|
printf("return because of unselect\n");
|
||||||
|
og->disable();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_is_percent_scale = boost::any_cast<wxString>(og->get_value("scale_unit")) == _("%");
|
g_is_percent_scale = boost::any_cast<wxString>(og->get_value("scale_unit")) == _("%");
|
||||||
update_scale_values();
|
update_scale_values();
|
||||||
update_rotation_values();
|
update_rotation_values();
|
||||||
|
og->enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void part_selection_changed()
|
void part_selection_changed()
|
||||||
|
@ -1357,13 +1359,11 @@ void part_selection_changed()
|
||||||
|
|
||||||
auto config = m_config;
|
auto config = m_config;
|
||||||
og->set_value("object_name", m_objects_model->GetName(item));
|
og->set_value("object_name", m_objects_model->GetName(item));
|
||||||
og->enable();
|
|
||||||
m_default_config = std::make_shared<DynamicPrintConfig>(*DynamicPrintConfig::new_from_defaults_keys(get_options(is_part)));
|
m_default_config = std::make_shared<DynamicPrintConfig>(*DynamicPrintConfig::new_from_defaults_keys(get_options(is_part)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
wxString empty_str = wxEmptyString;
|
wxString empty_str = wxEmptyString;
|
||||||
og->set_value("object_name", empty_str);
|
og->set_value("object_name", empty_str);
|
||||||
og->disable();
|
|
||||||
m_config = nullptr;
|
m_config = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1475,6 +1475,7 @@ void set_extruder_column_hidden(bool hide)
|
||||||
|
|
||||||
void update_extruder_in_config(const wxString& selection)
|
void update_extruder_in_config(const wxString& selection)
|
||||||
{
|
{
|
||||||
|
printf("BEGIN OF update_extruder_in_config\n");
|
||||||
if (!*m_config || selection.empty())
|
if (!*m_config || selection.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1485,6 +1486,7 @@ void update_extruder_in_config(const wxString& selection)
|
||||||
wxCommandEvent e(m_event_update_scene);
|
wxCommandEvent e(m_event_update_scene);
|
||||||
get_main_frame()->ProcessWindowEvent(e);
|
get_main_frame()->ProcessWindowEvent(e);
|
||||||
}
|
}
|
||||||
|
printf("END OF update_extruder_in_config\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_scale_values()
|
void update_scale_values()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue