mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-30 08:32:00 +00:00
Visual mode, UDMF: "Auto-align textures" actions now work for floors and ceilings. Textures are aligned to a linedef of highlighted floor/ceiling, which is closest to 3d-cursor position.
This commit is contained in:
parent
4fd2c8d7dc
commit
70b88bd47d
5 changed files with 194 additions and 155 deletions
|
@ -144,6 +144,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
}
|
||||
|
||||
//mxd
|
||||
public object HighlightedTarget { get { return target.picked; } }
|
||||
|
||||
new public IRenderer3D Renderer { get { return renderer; } }
|
||||
|
||||
public bool IsSingleSelection { get { return singleselection; } }
|
||||
|
@ -2316,7 +2319,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
[BeginAction("insertitem", BaseAction = true)]
|
||||
public void InsertThing()
|
||||
{
|
||||
Vector2D hitpos = getHitPosition();
|
||||
Vector2D hitpos = GetHitPosition();
|
||||
|
||||
if (!hitpos.IsFinite()) {
|
||||
General.Interface.DisplayStatus(StatusType.Warning, "Cannot insert thing here!");
|
||||
|
@ -2386,7 +2389,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
return;
|
||||
}
|
||||
|
||||
Vector2D hitpos = getHitPosition();
|
||||
Vector2D hitpos = GetHitPosition();
|
||||
|
||||
if (!hitpos.IsFinite()) {
|
||||
General.Interface.DisplayStatus(StatusType.Warning, "Cannot paste here!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue