mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
Fixed, Visual mode, UDMF: in some cases texture offsets were changed incorrectly while dragging sidedefs with negative texture scale.
This commit is contained in:
parent
c500edaf8d
commit
78eeb2ee03
1 changed files with 0 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue