Improved editor pause logic. Editor now pauses when it's enabled and makes sure UI is up to date with the current state.

This commit is contained in:
2016-02-01 10:30:34 +01:00
parent d3b1053f21
commit ee92200300
3 changed files with 30 additions and 4 deletions
+5
View File
@@ -93,6 +93,11 @@ void EditorSystem::Enable()
(glm::vec3&)m_EditorCamera["Transform"]["Position"] = Transform::AbsolutePosition(m_ActualCamera);
}
// Pause the world we're editing
Events::Pause ePause;
ePause.World = m_World;
m_EventBroker->Publish(ePause);
m_Enabled = true;
}