@ Highlighting 3D floor/ceiling will now show the sector info of the control sector instead of the sector that the floor/ceiling is in.

This commit is contained in:
codeimp 2010-09-16 13:13:17 +00:00
parent 5f1a5df50b
commit c3c4ffcc7b

View file

@ -377,13 +377,23 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
if(target.picked is VisualGeometry)
{
VisualGeometry pickedgeo = (target.picked as VisualGeometry);
if(pickedgeo.Sidedef != null)
General.Interface.ShowLinedefInfo(pickedgeo.Sidedef.Line);
else if(pickedgeo.Sidedef == null)
General.Interface.ShowSectorInfo(pickedgeo.Sector.Sector);
// Sidedef?
if(pickedgeo is BaseVisualGeometrySidedef)
{
BaseVisualGeometrySidedef pickedsidedef = (pickedgeo as BaseVisualGeometrySidedef);
General.Interface.ShowLinedefInfo(pickedsidedef.Sidedef.Line);
}
// Sector?
else if(pickedgeo is BaseVisualGeometrySector)
{
BaseVisualGeometrySector pickedsector = (pickedgeo as BaseVisualGeometrySector);
General.Interface.ShowSectorInfo(pickedsector.Level.sector);
}
else
{
General.Interface.HideInfo();
}
}
// Thing picked?
if(target.picked is VisualThing)