Fixed missing update of sidebar panel after orienting an object using Plalce on Face gizmo

This commit is contained in:
enricoturri1966 2023-02-14 11:56:40 +01:00
parent 7c58cf267f
commit 795d5120bf
2 changed files with 3 additions and 2 deletions

View file

@ -951,7 +951,7 @@ void ObjectManipulation::update_reset_buttons_visibility()
show_drop_to_bed = std::abs(min_z) > EPSILON;
const GLVolume* volume = selection.get_first_volume();
Geometry::Transformation trafo = selection.is_single_full_instance() ? volume->get_instance_transformation() : volume->get_volume_transformation();
const Geometry::Transformation trafo = selection.is_single_full_instance() ? volume->get_instance_transformation() : volume->get_volume_transformation();
const Geometry::TransformationSVD trafo_svd(trafo);
show_rotation = trafo_svd.rotation;