mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
- If geometry is selected and the geometry the modified slope handle belongs to is not selected it will now also be modified
- Made the slope handles hover closer to the geometry
This commit is contained in:
parent
73e8d5440f
commit
915d83c92a
2 changed files with 9 additions and 4 deletions
|
@ -56,10 +56,10 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
// (when resized or display adapter was changed)
|
||||
public void ReloadResource()
|
||||
{
|
||||
WorldVertex v0 = new WorldVertex(0.0f, -8.0f, 0.5f);
|
||||
WorldVertex v1 = new WorldVertex(0.0f, 0.0f, 0.5f);
|
||||
WorldVertex v2 = new WorldVertex(1.0f, 0.0f, 0.5f);
|
||||
WorldVertex v3 = new WorldVertex(1.0f, -8.0f, 0.5f);
|
||||
WorldVertex v0 = new WorldVertex(0.0f, -8.0f, 0.1f);
|
||||
WorldVertex v1 = new WorldVertex(0.0f, 0.0f, 0.1f);
|
||||
WorldVertex v2 = new WorldVertex(1.0f, 0.0f, 0.1f);
|
||||
WorldVertex v3 = new WorldVertex(1.0f, -8.0f, 0.1f);
|
||||
|
||||
v1.c = v2.c = PixelColor.INT_WHITE;
|
||||
v0.c = v3.c = PixelColor.INT_WHITE_NO_ALPHA;
|
||||
|
|
|
@ -226,9 +226,14 @@ namespace CodeImp.DoomBuilder.VisualModes
|
|||
if (selectedsectors.Count == 0)
|
||||
levels.Add(level);
|
||||
else
|
||||
{
|
||||
foreach (BaseVisualGeometrySector bvgs in selectedsectors)
|
||||
levels.Add(bvgs.Level);
|
||||
|
||||
if (!levels.Contains(level))
|
||||
levels.Add(level);
|
||||
}
|
||||
|
||||
// Try to find a slope handle the user set to be the pivot handle
|
||||
// TODO: doing this every time is kind of stupid. Maybe store the pivot handle in the mode?
|
||||
foreach (KeyValuePair<Sector, List<VisualSlope>> kvp in mode.AllSlopeHandles)
|
||||
|
|
Loading…
Reference in a new issue