mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Merge branch 'main' into dev/h2d-2
# Conflicts: # src/slic3r/GUI/PartPlate.hpp
This commit is contained in:
@@ -1019,7 +1019,7 @@ static ExPolygons inner_offset(const ExPolygons &ex_polygons, double offset_dis)
|
||||
// remove too small holes from the ex_poly
|
||||
for (ExPolygon &ex_poly : ex_poly_result) {
|
||||
for (auto iter = ex_poly.holes.begin(); iter != ex_poly.holes.end();) {
|
||||
auto out_offset_holes = offset(*iter, scale_(1.0f));
|
||||
auto out_offset_holes = offset(*iter, scale_(0.1f));
|
||||
if (out_offset_holes.empty()) {
|
||||
iter = ex_poly.holes.erase(iter);
|
||||
} else {
|
||||
|
||||
@@ -153,7 +153,8 @@ struct PerExtruderAdjustments
|
||||
assert(line.time_max >= 0.f && line.time_max < FLT_MAX);
|
||||
line.slowdown = true;
|
||||
line.time = line.time_max;
|
||||
line.feedrate = line.length / line.time;
|
||||
if (line.time > 0.f)
|
||||
line.feedrate = line.length / line.time;
|
||||
}
|
||||
time_total += line.time;
|
||||
}
|
||||
@@ -169,7 +170,8 @@ struct PerExtruderAdjustments
|
||||
if (line.adjustable(slowdown_external_perimeters)) {
|
||||
line.slowdown = true;
|
||||
line.time = std::min(line.time_max, line.time * factor);
|
||||
line.feedrate = line.length / line.time;
|
||||
if (line.time > 0.f)
|
||||
line.feedrate = line.length / line.time;
|
||||
}
|
||||
time_total += line.time;
|
||||
}
|
||||
|
||||
@@ -206,9 +206,9 @@ private:
|
||||
void on_filament_map_mode_change();
|
||||
|
||||
public:
|
||||
static const unsigned int PLATE_NAME_HOVER_ID = 6;
|
||||
static const unsigned int PLATE_FILAMENT_MAP_ID = 8;
|
||||
static const unsigned int GRABBER_COUNT = 9;
|
||||
static constexpr unsigned int PLATE_NAME_HOVER_ID = 6;
|
||||
static constexpr unsigned int PLATE_FILAMENT_MAP_ID = 8;
|
||||
static constexpr unsigned int GRABBER_COUNT = 9;
|
||||
|
||||
static ColorRGBA SELECT_COLOR;
|
||||
static ColorRGBA UNSELECT_COLOR;
|
||||
@@ -675,7 +675,7 @@ public:
|
||||
void reset();
|
||||
};
|
||||
|
||||
static const unsigned int MAX_PLATES_COUNT = MAX_PLATE_COUNT;
|
||||
static constexpr unsigned int MAX_PLATES_COUNT = MAX_PLATE_COUNT;
|
||||
static GLTexture bed_textures[(unsigned int)btCount];
|
||||
static bool is_load_bedtype_textures;
|
||||
static bool is_load_cali_texture;
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
// EIdBase::Volume must be greater than PartPlateList::MAX_PLATES_COUNT * PartPlate::GRABBER_COUNT
|
||||
static_assert((int) SceneRaycaster::EIdBase::Volume > PartPlateList::MAX_PLATES_COUNT * PartPlate::GRABBER_COUNT, "EIdBase::Volume too small");
|
||||
|
||||
SceneRaycaster::SceneRaycaster() {
|
||||
#if ENABLE_RAYCAST_PICKING_DEBUG
|
||||
// hit point
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
enum class EIdBase
|
||||
{
|
||||
Bed = 0,
|
||||
Volume = 1000, // Must be smaller than PartPlateList::MAX_PLATES_COUNT * PartPlate::GRABBER_COUNT
|
||||
Volume = 1000, // Must be greater than PartPlateList::MAX_PLATES_COUNT * PartPlate::GRABBER_COUNT
|
||||
Gizmo = 1000000,
|
||||
FallbackGizmo = 2000000
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user