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:
MaxED 2013-05-29 14:18:49 +00:00
parent 4fd2c8d7dc
commit 70b88bd47d
5 changed files with 194 additions and 155 deletions

View file

@ -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!");