Fix issue that painter sphere is rendered at the wrong position (#4652)

This commit is contained in:
Noisyfox 2024-03-23 13:04:24 +08:00 committed by GitHub
parent 52c57ad77e
commit d601e9d544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();