Fix up model compiler appearance
This commit is contained in:
parent
33e60bfba6
commit
5572f3aef4
1 changed files with 6 additions and 2 deletions
|
@ -486,9 +486,13 @@ void ModelEditor::compile_model() {
|
|||
}
|
||||
|
||||
void ModelEditor::drawUI() {
|
||||
ImGui::Begin("mcompile", nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoBackground);
|
||||
|
||||
ImGui::SetWindowPos(ImVec2(0, 0));
|
||||
auto viewport = ImGui::GetWindowViewport();
|
||||
|
||||
ImGui::Begin("mcompile", nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDecoration);
|
||||
|
||||
|
||||
ImGui::SetWindowPos(viewport->Pos);
|
||||
ImGui::SetWindowSize(platform::get_window_size(engine->get_main_window()));
|
||||
|
||||
if(ImGui::Button("Open model to compile...")) {
|
||||
|
|
Reference in a new issue