Skip to content

Commit

Permalink
#10839 - Fixed volumes' translation in Object Coordinates (SPE-1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 committed Aug 22, 2023
1 parent ae8684a commit 2101f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/Selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ void Selection::translate(const Vec3d& displacement, TransformationType transfor
}
else {
Vec3d relative_disp = displacement;
if (transformation_type.instance())
if (transformation_type.world() && transformation_type.instance())
relative_disp = volume_data.get_instance_scale_matrix().inverse() * relative_disp;

transform_volume_relative(v, volume_data, transformation_type, Geometry::translation_transform(relative_disp), m_cache.dragging_center);
Expand Down

0 comments on commit 2101f59

Please sign in to comment.