Skip to content

Commit

Permalink
Never resolve merge conflicts at 6 am
Browse files Browse the repository at this point in the history
  • Loading branch information
jupahe64 committed Dec 5, 2023
1 parent b04922a commit 4734a8d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Fushigi/ui/widgets/LevelViewport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,19 +498,6 @@ void InteractionWithFocus(KeyboardModifier modifiers)

if (ImGui.IsItemClicked())
{
bool isModeActor = mHoveredObject != null;
bool isModeUnit = HoveredPoint != null;

if (isModeActor && !isModeUnit)
{
mEditorMode = EditorMode.Actors;
}

if (isModeUnit && !isModeActor)
{
mEditorMode = EditorMode.Units;
}

/* if the user clicked somewhere and it was not hovered over an element,
* we clear our selected actors array */
if (mHoveredObject == null)
Expand Down Expand Up @@ -550,9 +537,7 @@ void InteractionWithFocus(KeyboardModifier modifiers)
}

if (ImGui.IsKeyPressed(ImGuiKey.Delete))
{
mEditorState = EditorState.DeleteActorLinkCheck;
}
ObjectDeletionRequested?.Invoke(mEditContext.GetSelectedObjects<CourseActor>().ToList());

if (ImGui.IsKeyPressed(ImGuiKey.Escape))
mEditContext.DeselectAll();
Expand Down

0 comments on commit 4734a8d

Please sign in to comment.