Skip to content

Commit

Permalink
- Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgemagic committed Jul 19, 2024
1 parent 72357a7 commit d2def7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions DonatelloAI/Components/Manipulation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ protected override void Update(TimeSpan gameTime)
if (keyboardDispatcher?.ReadKeyState(Keys.Delete) == ButtonState.Pressing)
{
Managers.EntityManager.Remove(this.modelCollectionManager.CurrentSelectedEntity);
transform = null;
return;
}

var io = ImguiNative.igGetIO();
Expand Down
3 changes: 2 additions & 1 deletion DonatelloAI/UI/GalleryPanel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using DonatelloAI.ImGui;
using DonatelloAI.SceneManagers;
using Evergine.Bindings.Imgui;
using Evergine.Framework.Threading;
using Evergine.Mathematics;
using Evergine.UI;
using System.Threading.Tasks;
Expand Down Expand Up @@ -60,7 +61,7 @@ public unsafe void Show(ref ImGuiIO* io)

private void LoadModelFromGallery(ModelData modelData)
{
Task.Run(async () =>
EvergineForegroundTask.Run(async () =>
{
await this.modelCollectionManager.LoadModel(modelData);
});
Expand Down

0 comments on commit d2def7d

Please sign in to comment.