Fixed, Edit Selection mode: floor/ceiling textures rotation was not converted from radians to degrees when "Transform Texture Rotation" setting was disabled.

This commit is contained in:
MaxED 2015-06-18 14:01:31 +00:00
parent bb95af2207
commit 4c3d17a290

View file

@ -885,7 +885,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
fields["rotation" + si.Part] = new UniValue(UniversalType.AngleDegreesFloat, General.ClampAngle((float)Math.Round(Angle2D.RadToDeg(si.Rotation + texrotation), General.Map.FormatInterface.VertexDecimals))); fields["rotation" + si.Part] = new UniValue(UniversalType.AngleDegreesFloat, General.ClampAngle((float)Math.Round(Angle2D.RadToDeg(si.Rotation + texrotation), General.Map.FormatInterface.VertexDecimals)));
// Restore rotation // Restore rotation
else else
fields["rotation" + si.Part] = new UniValue(UniversalType.AngleDegreesFloat, si.Rotation); fields["rotation" + si.Part] = new UniValue(UniversalType.AngleDegreesFloat, Angle2D.RadToDeg(si.Rotation));
// Update scale // Update scale
if(scaleoffsets) if(scaleoffsets)