Skip to content

Commit

Permalink
making sure you can't rotate or flip objects while editting ImGui win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
saint11 committed Jan 2, 2025
1 parent bc4af2b commit af2ebb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Murder.Editor/Systems/EntitiesShortcutsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Bang.Contexts;
using Bang.Entities;
using Bang.Systems;
using ImGuiNET;
using Murder.Components;
using Murder.Components.Graphics;
using Murder.Core.Graphics;
Expand Down Expand Up @@ -32,7 +33,7 @@ public void Update(Context context)

var hook = editorComponent.EditorHook;

if (hook.UsingGui)
if (hook.UsingGui || ImGui.IsAnyItemActive())
{
return;
}
Expand Down

0 comments on commit af2ebb1

Please sign in to comment.