@@ -244,8 +244,13 @@ namespace FlaxEditor.Surface
|
|||||||
else
|
else
|
||||||
icon = hasConnections ? style.Icons.BoxClose : style.Icons.BoxOpen;
|
icon = hasConnections ? style.Icons.BoxClose : style.Icons.BoxOpen;
|
||||||
color *= box.ConnectionsHighlightIntensity + 1;
|
color *= box.ConnectionsHighlightIntensity + 1;
|
||||||
|
if (box.IsMouseOver)
|
||||||
// Disable vertex snapping to prevent position jitter/ snapping artefacts for the boxes when zooming the surface
|
{
|
||||||
|
color *= 1.3f;
|
||||||
|
rect = rect.MakeExpanded(1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disable vertex snapping to prevent position jitter/snapping artefacts for the boxes when zooming the surface
|
||||||
var features = Render2D.Features;
|
var features = Render2D.Features;
|
||||||
Render2D.Features = features & ~Render2D.RenderingFeatures.VertexSnapping;
|
Render2D.Features = features & ~Render2D.RenderingFeatures.VertexSnapping;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user