- 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:
biwa 2020-02-23 11:17:14 +01:00
parent 73e8d5440f
commit 915d83c92a
2 changed files with 9 additions and 4 deletions

View file

@ -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;

View file

@ -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)