Browse Source

fixed background

master
cflin 2 years ago
parent
commit
f14301d2b6
  1. 3
      src/viewer/UIMenu.cpp
  2. 3
      src/viewer/UISimState.cpp

3
src/viewer/UIMenu.cpp

@ -44,9 +44,8 @@ namespace ipc::rigid {
draw_io();
draw_legends();
if (m_has_scene) {
draw_legends();
if (ImGui::CollapsingHeader(
"运行", &player_menu, ImGuiTreeNodeFlags_DefaultOpen)) {
draw_simulation_player();

3
src/viewer/UISimState.cpp

@ -81,6 +81,9 @@ void UISimState::init(igl::opengl::glfw::Viewer* _viewer)
datas_.emplace_back("edges", mesh_data);
datas_.emplace_back("velocity", velocity_data);
datas_.emplace_back("body-frame", com_data);
// Default colors
viewer->core().background_color << 0.9f, 0.9f, 0.9f, 0.4f;
load(this->inital_scene);
}

Loading…
Cancel
Save