diff --git a/Source/Editor/Surface/ResizableSurfaceNode.cs b/Source/Editor/Surface/ResizableSurfaceNode.cs index 2bb30e0dd..e435e82bf 100644 --- a/Source/Editor/Surface/ResizableSurfaceNode.cs +++ b/Source/Editor/Surface/ResizableSurfaceNode.cs @@ -154,7 +154,7 @@ namespace FlaxEditor.Surface // This ensures that the node is not resized below min size, but also keeps the resize behavior like expected (which just Max() -ing the value does not) var emptySize = ResizableNode.CalculateNodeSize(0, 0); - var minSize = ResizableNode.sizeMin; + var minSize = ResizableNode._sizeMin; noClampedSize = noClampedSize + uiControlDelta * resizeAxisPos - uiControlDelta * resizeAxisNeg; if (noClampedSize.X < minSize.X && noClampedSize.X < ResizableNode.Size.X) resizeAxisAbs.X = resizeAxisPos.X = resizeAxisNeg.X = 0f; @@ -264,7 +264,7 @@ namespace FlaxEditor.Surface /// /// Minimum node size. /// - protected Float2 sizeMin = new Float2(240, 160); + protected Float2 _sizeMin = new Float2(240, 160); private Float2 SizeValue {