add commandline to load scene file
This commit is contained in:
@ -51,6 +51,14 @@ namespace Hazel
|
|||||||
m_SceneHierachyPanel.SetContext(m_ActiveScene);
|
m_SceneHierachyPanel.SetContext(m_ActiveScene);
|
||||||
|
|
||||||
m_GizmoType = ImGuizmo::OPERATION::TRANSLATE;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user