no resizing in non editable Visject surfaces

This commit is contained in:
Saas
2026-03-17 20:28:55 +01:00
parent 826b7841e6
commit 7bed68948b
@@ -138,7 +138,7 @@ namespace FlaxEditor.Surface
{
UpdateResizeFlags(location);
}
else
else if (_surface.CanEdit)
{
var resizeAxisAbs = ResizeDirection.Absolute;
var resizeAxisPos = Float2.Clamp(ResizeDirection, Float2.Zero, Float2.One);
@@ -172,7 +172,7 @@ namespace FlaxEditor.Surface
}
// Update the cursor shape
if ((_surface.resizeableNodeIndexInParent <= IndexInParent || IgnoreSurfaceIndex) && !_surface.IsConnecting)
if ((_surface.resizeableNodeIndexInParent <= IndexInParent || IgnoreSurfaceIndex) && !_surface.IsConnecting && _surface.CanEdit)
{
if (!IgnoreSurfaceIndex)
_surface.resizeableNodeIndexInParent = IndexInParent;