minor refactor

This commit is contained in:
Turanszki Janos
2017-10-12 21:19:43 +01:00
parent eb0871fbf6
commit 91d42ff9aa
6 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -65,6 +65,8 @@ void Editor::Initialize()
//wiFont::addFontStyle("basic");
wiInputManager::GetInstance()->addXInput(new wiXInput());
wiProfiler::GetInstance().ENABLED = true;
renderComponent = new EditorComponent;
renderComponent->Initialize();
loader = new EditorLoadingScreen;
@@ -785,7 +787,7 @@ void EditorComponent::Load()
clearButton->OnClick([&](wiEventArgs args) {
selected.clear();
EndTranslate();
wiRenderer::CleanUpStaticTemp();
wiRenderer::ClearWorld();
objectWnd->SetObject(nullptr);
meshWnd->SetMesh(nullptr);
lightWnd->SetLight(nullptr);