Skip to content

Commit 4aaf0bc

Browse files
authored
fix: Mouse look when using FreeDraw (#403)
1 parent e0ea083 commit 4aaf0bc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Plugins/Editor/Scripts/View/GUI/EditModeGUI/EditModes/Generators/Generator.FreeDraw.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,10 +1153,12 @@ protected override void HandleCreateShapeEvents(SceneView sceneView, Rect sceneR
11531153
case EventType.MouseDrag:
11541154
{
11551155
clickCount = 0;
1156-
if (GUIUtility.hotControl != base.shapeId)
1157-
return;
1158-
1159-
Event.current.Use();
1156+
if (Tools.viewTool != ViewTool.None && Tools.viewTool != ViewTool.Pan)
1157+
break;
1158+
if (GUIUtility.hotControl == base.shapeId && Event.current.button == 0)
1159+
{
1160+
Event.current.Use();
1161+
}
11601162
return;
11611163
}
11621164
case EventType.MouseUp:

0 commit comments

Comments
 (0)