Edit Selection Mode: fixed a problem where floor and ceiling textures were unintentionally scaled in UDMF when resizing the selection. Fixes #873

This commit is contained in:
biwa 2023-04-22 19:38:18 +02:00
parent 724bd24d37
commit 86f1532a9f

View file

@ -914,8 +914,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
fields["xpanning" + si.Part] = new UniValue(UniversalType.Float, si.Offset.x);
fields["ypanning" + si.Part] = new UniValue(UniversalType.Float, si.Offset.y);
fields["rotation" + si.Part] = new UniValue(UniversalType.AngleDegreesFloat, Angle2D.RadToDeg(si.Rotation));
fields["xscale" + si.Part] = new UniValue(UniversalType.Float, Math.Round(si.Scale.x * scale.x, General.Map.FormatInterface.VertexDecimals));
fields["yscale" + si.Part] = new UniValue(UniversalType.Float, Math.Round(-si.Scale.y * scale.y, General.Map.FormatInterface.VertexDecimals));
//fields["xscale" + si.Part] = new UniValue(UniversalType.Float, Math.Round(si.Scale.x * scale.x, General.Map.FormatInterface.VertexDecimals));
//fields["yscale" + si.Part] = new UniValue(UniversalType.Float, Math.Round(-si.Scale.y * scale.y, General.Map.FormatInterface.VertexDecimals));
}
}