From 78eeb2ee03c4d3adc8238251b688eaba67452245 Mon Sep 17 00:00:00 2001 From: MaxED Date: Mon, 15 Jun 2015 10:51:36 +0000 Subject: [PATCH] Fixed, Visual mode, UDMF: in some cases texture offsets were changed incorrectly while dragging sidedefs with negative texture scale. --- .../VisualModes/BaseVisualGeometrySidedef.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Source/Plugins/BuilderModes/VisualModes/BaseVisualGeometrySidedef.cs b/Source/Plugins/BuilderModes/VisualModes/BaseVisualGeometrySidedef.cs index 86d0af4d..566b33c6 100644 --- a/Source/Plugins/BuilderModes/VisualModes/BaseVisualGeometrySidedef.cs +++ b/Source/Plugins/BuilderModes/VisualModes/BaseVisualGeometrySidedef.cs @@ -1358,15 +1358,6 @@ namespace CodeImp.DoomBuilder.BuilderModes float offsety = dragdeltaz.GetLength(); if((Math.Sign(dragdeltaxy.x) < 0) || (Math.Sign(dragdeltaxy.y) < 0) || (Math.Sign(dragdeltaxy.z) < 0)) offsetx = -offsetx; if((Math.Sign(dragdeltaz.x) < 0) || (Math.Sign(dragdeltaz.y) < 0) || (Math.Sign(dragdeltaz.z) < 0)) offsety = -offsety; - - //mxd. Modify by surface scale? - if (General.Map.UDMF) - { - float sx = UDMFTools.GetFloat(Sidedef.Fields, "scalex_" + partname, 1.0f); - float sy = UDMFTools.GetFloat(Sidedef.Fields, "scaley_" + partname, 1.0f); - if (Math.Abs(sx) < 1) offsetx *= sx; - if (Math.Abs(sy) < 1) offsety *= sy; - } // Apply offsets if(General.Interface.CtrlState && General.Interface.ShiftState)