Skip to content

Commit

Permalink
Remove scaling with S key in transform mode
Browse files Browse the repository at this point in the history
Not needed anymore.
  • Loading branch information
ousnius committed Oct 8, 2016
1 parent b92553f commit 8ae58da
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/program/OutfitStudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ushort, float> mask;
vector<Vector3> 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();
Expand Down

0 comments on commit 8ae58da

Please sign in to comment.