Fix reflection on object

This commit is contained in:
Filip Sykala - NTB T15p 2023-07-20 11:32:13 +02:00
parent 91109892d9
commit 6a932e4b9e

View File

@ -1108,7 +1108,8 @@ void GLGizmoSVG::draw_reflection()
if (axis != Axis::UNKNOWN_AXIS){ if (axis != Axis::UNKNOWN_AXIS){
Selection &selection = m_parent.get_selection(); Selection &selection = m_parent.get_selection();
selection.setup_cache(); selection.setup_cache();
selection.mirror(axis, TransformationType::Local); TransformationType type = m_volume->is_the_only_one_part()? TransformationType::Instance : TransformationType::Local;
selection.mirror(axis, type);
m_parent.do_mirror(L("Set Mirror")); m_parent.do_mirror(L("Set Mirror"));
wxGetApp().obj_manipul()->UpdateAndShow(true); wxGetApp().obj_manipul()->UpdateAndShow(true);