mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 18:21:18 -06:00
Fixed conflicts after merge with master
This commit is contained in:
commit
ef32cd6059
9 changed files with 75 additions and 26 deletions
|
|
@ -5100,7 +5100,7 @@ void GLCanvas3D::_render_overlays() const
|
|||
|
||||
#if ENABLE_SHOW_SCENE_LABELS
|
||||
const ConfigOptionBool* opt = dynamic_cast<const ConfigOptionBool*>(m_config->option("complete_objects"));
|
||||
bool sequential_print = (opt != nullptr) ? m_config->opt_bool("complete_objects") : false;
|
||||
bool sequential_print = opt != nullptr && opt->value;
|
||||
std::vector<const ModelInstance*> sorted_instances;
|
||||
if (sequential_print) {
|
||||
for (ModelObject* model_object : m_model->objects)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ public:
|
|||
void update_hollowed_mesh(std::unique_ptr<TriangleMesh> &&mesh);
|
||||
|
||||
bool is_selection_rectangle_dragging() const { return m_selection_rectangle.is_dragging(); }
|
||||
void update_clipping_plane(bool keep_normal = false) const;
|
||||
|
||||
private:
|
||||
bool on_init() override;
|
||||
|
|
@ -96,7 +97,6 @@ private:
|
|||
void select_point(int i);
|
||||
void unselect_point(int i);
|
||||
void reload_cache();
|
||||
void update_clipping_plane(bool keep_normal = false) const;
|
||||
|
||||
protected:
|
||||
void on_set_state() override;
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ public:
|
|||
bool is_selection_rectangle_dragging() const { return m_selection_rectangle.is_dragging(); }
|
||||
bool has_backend_supports() const;
|
||||
void reslice_SLA_supports(bool postpone_error_messages = false) const;
|
||||
void update_clipping_plane(bool keep_normal = false) const;
|
||||
|
||||
private:
|
||||
bool on_init() override;
|
||||
|
|
@ -139,7 +140,6 @@ private:
|
|||
void switch_to_editing_mode();
|
||||
void disable_editing_mode();
|
||||
void reset_clipping_plane_normal() const;
|
||||
void update_clipping_plane(bool keep_normal = false) const;
|
||||
|
||||
protected:
|
||||
void on_set_state() override;
|
||||
|
|
|
|||
|
|
@ -348,11 +348,22 @@ void GLGizmosManager::set_sla_support_data(ModelObject* model_object)
|
|||
if (!m_enabled || m_gizmos.empty())
|
||||
return;
|
||||
|
||||
// Update common data for hollowing and sla support gizmos.
|
||||
m_common_gizmos_data->update_from_backend(m_parent, model_object);
|
||||
auto* gizmo_supports = dynamic_cast<GLGizmoSlaSupports*>(m_gizmos[SlaSupports].get());
|
||||
auto* gizmo_hollow = dynamic_cast<GLGizmoHollow*>(m_gizmos[Hollow].get());
|
||||
|
||||
dynamic_cast<GLGizmoSlaSupports*>(m_gizmos[SlaSupports].get())->set_sla_support_data(model_object, m_parent.get_selection());
|
||||
dynamic_cast<GLGizmoHollow*>(m_gizmos[Hollow].get())->set_sla_support_data(model_object, m_parent.get_selection());
|
||||
|
||||
// Update common data for hollowing and sla support gizmos.
|
||||
if (m_common_gizmos_data->update_from_backend(m_parent, model_object)) {
|
||||
// FIXME: this is a hack to make that the clipping plane is
|
||||
// updated when the update set its position to zero. The clipping
|
||||
// plane itself should be common, including the update_function.
|
||||
// Then update_from_backend could do it itself.
|
||||
gizmo_supports->update_clipping_plane();
|
||||
gizmo_hollow->update_clipping_plane();
|
||||
}
|
||||
|
||||
gizmo_supports->set_sla_support_data(model_object, m_parent.get_selection());
|
||||
gizmo_hollow->set_sla_support_data(model_object, m_parent.get_selection());
|
||||
}
|
||||
|
||||
// Returns true if the gizmo used the event to do something, false otherwise.
|
||||
|
|
|
|||
|
|
@ -1328,6 +1328,7 @@ void Selection::copy_to_clipboard()
|
|||
static_cast<DynamicPrintConfig&>(dst_object->config) = static_cast<const DynamicPrintConfig&>(src_object->config);
|
||||
dst_object->sla_support_points = src_object->sla_support_points;
|
||||
dst_object->sla_points_status = src_object->sla_points_status;
|
||||
dst_object->sla_drain_holes = src_object->sla_drain_holes;
|
||||
dst_object->layer_config_ranges = src_object->layer_config_ranges; // #ys_FIXME_experiment
|
||||
dst_object->layer_height_profile = src_object->layer_height_profile;
|
||||
dst_object->origin_translation = src_object->origin_translation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue