Started editor .Net context for undo/redo system

This commit is contained in:
Antoine Pilote
2024-08-25 22:42:07 -04:00
parent 03231e6bf7
commit 9a30925b34
18 changed files with 531 additions and 28 deletions

View File

@@ -9,8 +9,10 @@
#include "src/Rendering/Renderer.h"
#include "src/Rendering/Renderer2D.h"
#include "src/Scripting/ScriptingEngine.h"
#include "src/Scripting/ScriptingEngineNet.h"
#include "src/Threading/JobSystem.h"
#include <imgui/imgui_impl_glfw.h>
#include <imgui/imgui_impl_opengl3.h>
@@ -139,7 +141,12 @@ namespace Nuake
Ref<Scene> Engine::GetCurrentScene()
{
return s_CurrentWindow->GetScene();
if (s_CurrentWindow)
{
return s_CurrentWindow->GetScene();
}
return nullptr;
}
bool Engine::LoadScene(Ref<Scene> scene)