From 8ae58dabe88c32326c87c6300e8c9bafb0d54ed6 Mon Sep 17 00:00:00 2001 From: ousnius Date: Sat, 8 Oct 2016 02:51:45 +0200 Subject: [PATCH] Remove scaling with S key in transform mode Not needed anymore. --- src/program/OutfitStudio.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/program/OutfitStudio.cpp b/src/program/OutfitStudio.cpp index b2ba60ec..f354fa83 100644 --- a/src/program/OutfitStudio.cpp +++ b/src/program/OutfitStudio.cpp @@ -6323,23 +6323,7 @@ void wxGLPanel::OnMouseWheel(wxMouseEvent& event) { wxPoint p = event.GetPosition(); int delt = event.GetWheelRotation(); - if (transformMode) { - // Adjust scale of active shapes - float factor = delt < 0 ? 0.99f : 1.01f; - Vector3 scale(factor, factor, factor); - for (auto &m : gls.GetActiveMeshes()) { - unordered_map mask; - vector verts; - GetShapeMask(mask, m->shapeName); - - os->project->ScaleShape(m->shapeName, scale, &mask); - os->project->GetLiveVerts(m->shapeName, verts); - UpdateMeshVertices(m->shapeName, &verts, true, false); - } - - ShowTransformTool(); - } - else if (editMode) { + if (editMode) { // Adjust brush size if (delt < 0) DecBrush();