Removed display_flip_xy and added display_orientation instead.

When starting Slic3r and the profile is FDM type than it yields an assertion failure for wx. See Tab::update_page_tree_visibility() line 2371
This commit is contained in:
tamasmeszaros 2018-12-13 12:42:45 +01:00
parent 1dad58e60c
commit 310adc18c6
8 changed files with 75 additions and 26 deletions

View file

@ -392,7 +392,7 @@ struct Pillar {
void add_base(double height = 3, double radius = 2) {
if(height <= 0) return;
assert(steps > 0);
assert(steps >= 0);
auto last = int(steps - 1);
if(radius < r ) radius = r;
@ -1293,7 +1293,7 @@ bool SLASupportTree::generate(const PointSet &points,
return distance(Vec2d(p1(X), p1(Y)), Vec2d(p2(X), p2(Y)));
});
assert(lcid > 0);
assert(lcid >= 0);
auto cid = unsigned(lcid);
cl_centroids.push_back(unsigned(cid));
@ -1454,7 +1454,7 @@ bool SLASupportTree::generate(const PointSet &points,
SpatIndex innerring;
for(unsigned i : newring) {
const Pillar& pill = result.head_pillar(gndidx[i]);
assert(pill.id > 0);
assert(pill.id >= 0);
innerring.insert(pill.endpoint, unsigned(pill.id));
}