diff --git a/Sandbox/src/Editor/EditorLayer.cpp b/Sandbox/src/Editor/EditorLayer.cpp index 403db5a..abed044 100644 --- a/Sandbox/src/Editor/EditorLayer.cpp +++ b/Sandbox/src/Editor/EditorLayer.cpp @@ -51,6 +51,14 @@ namespace Hazel m_SceneHierachyPanel.SetContext(m_ActiveScene); m_GizmoType = ImGuizmo::OPERATION::TRANSLATE; + auto commandLineArgs = Application::Get().GetSpecification().commandLineArgs; + if (commandLineArgs.count > 1) + { + auto scenePath = commandLineArgs.args[1]; + SceneSerializer sceneSerializer(m_ActiveScene); + + sceneSerializer.Deserialize(scenePath); + } }