浏览代码

Add check for capture when draggable manipulator releases

/main
Jens Holm 7 年前
当前提交
8bd7923f
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/Draggable.cs

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Manipulators/Draggable.cs


void OnMouseUp(MouseUpEvent evt)
{
m_Active = false;
target.ReleaseMouseCapture();
if (target.HasMouseCapture())
{
target.ReleaseMouseCapture();
}
evt.StopPropagation();
}
}
正在加载...
取消
保存