mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Axes with fixed size in 3D previews
This commit is contained in:
@@ -1281,10 +1281,7 @@ sub Render {
|
|||||||
# disable depth testing so that axes are not covered by ground
|
# disable depth testing so that axes are not covered by ground
|
||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
my $origin = $self->origin;
|
my $origin = $self->origin;
|
||||||
my $axis_len = max(
|
my $axis_len = $self->use_plain_shader ? 0.3 * max(@{ $self->bed_bounding_box->size }) : 2 * max(@{ $volumes_bb->size });
|
||||||
0.3 * max(@{ $self->bed_bounding_box->size }),
|
|
||||||
2 * max(@{ $volumes_bb->size }),
|
|
||||||
);
|
|
||||||
glLineWidth(2);
|
glLineWidth(2);
|
||||||
glBegin(GL_LINES);
|
glBegin(GL_LINES);
|
||||||
# draw line for x axis
|
# draw line for x axis
|
||||||
|
|||||||
Reference in New Issue
Block a user