Fixed update of rotate gizmo when selecting objects

This commit is contained in:
Enrico Turri 2018-07-19 11:24:04 +02:00
parent 7b551171e8
commit 678be2b317

View File

@ -1917,24 +1917,9 @@ void GLCanvas3D::update_gizmos_data()
{
ModelInstance* model_instance = model_object->instances[0];
if (model_instance != nullptr)
{
switch (m_gizmos.get_current_type())
{
case Gizmos::Scale:
{
m_gizmos.set_scale(model_instance->scaling_factor);
break;
}
case Gizmos::Rotate:
{
m_gizmos.set_angle_z(model_instance->rotation);
break;
}
default:
{
break;
}
}
}
}
}