mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-11 06:01:47 +08:00
Follow-up of 9b915bdd0985fd3deb7b99f4d3598b63fa5b3b99 - Fixed crash
This commit is contained in:
parent
6990c3faac
commit
bca8597712
@ -504,7 +504,7 @@ void GLGizmoMeasure::on_render()
|
||||
{
|
||||
const auto& [start, end] = feature.get_edge();
|
||||
// render extra point
|
||||
const std::optional<Vec3d> extra = m_curr_feature->get_extra_point();
|
||||
const std::optional<Vec3d> extra = feature.get_extra_point();
|
||||
if (extra.has_value()) {
|
||||
const Transform3d point_matrix = model_matrix * Geometry::translation_transform(*extra) * Geometry::scale_transform(inv_zoom);
|
||||
set_matrix_uniforms(point_matrix);
|
||||
|
Loading…
x
Reference in New Issue
Block a user