Skip to content

Commit

Permalink
Fix issue that painter sphere is rendered at the wrong position (#4652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noisyfox committed Mar 23, 2024
1 parent 52c57ad commit d601e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void GLGizmoPainterBase::render_cursor_sphere(const Transform3d& trafo) const
if (shader == nullptr)
return;

const Transform3d complete_scaling_matrix_inverse = Geometry::Transformation(trafo).get_matrix_no_scaling_factor().inverse();
const Transform3d complete_scaling_matrix_inverse = Geometry::Transformation(trafo).get_scaling_factor_matrix().inverse();

// BBS
ColorRGBA render_color = this->get_cursor_hover_color();
Expand Down

0 comments on commit d601e9d

Please sign in to comment.