Fixed visibility of Object Manipulator reset buttons for single instance selection

This commit is contained in:
enricoturri1966 2023-01-23 11:28:16 +01:00
parent c16fa93bdb
commit 22a1109e30

View File

@ -944,6 +944,9 @@ void ObjectManipulation::update_reset_buttons_visibility()
if (selection.is_single_full_instance()) {
#if ENABLE_WORLD_COORDINATE
const Geometry::Transformation& trafo = volume->get_instance_transformation();
rotation = trafo.get_rotation_matrix();
scale = trafo.get_scaling_factor_matrix();
const Selection::IndicesList& idxs = selection.get_volume_idxs();
for (unsigned int id : idxs) {
const Geometry::Transformation world_trafo(selection.get_volume(id)->world_matrix());