浏览代码

Fix typo in ResizeHandle

/main
Jens Holm 7 年前
当前提交
d54f7422
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/ResizeBorderFrame.cs
  2. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/ResizeSideHandle.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/ResizeBorderFrame.cs


m_StayWithinParentBounds = value;
foreach (ResizeSideHandle resizeHandle in m_ResizeSideHandles)
{
resizeHandle.stayWithinPanretBounds = value;
resizeHandle.stayWithinParentBounds = value;
}
}
}

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/ResizeSideHandle.cs


bool m_StayWithinParentBounds;
public bool stayWithinPanretBounds
public bool stayWithinParentBounds
{
get { return m_StayWithinParentBounds; }
set { m_StayWithinParentBounds = value; }

newLayout.yMax = Mathf.Max(newLayout.yMax + normalizedResizeDelta.y, newLayout.yMin + minSize.y);
}
if (stayWithinPanretBounds)
if (stayWithinParentBounds)
{
newLayout.xMin = Mathf.Max(newLayout.xMin, 0f);
newLayout.yMin = Mathf.Max(newLayout.yMin, 0f);

正在加载...
取消
保存