Browse Source

Fix Window::screenshotModule() not rendering illuminated lights.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
e334b1dd31
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Window.cpp

+ 3
- 0
src/Window.cpp View File

@@ -562,6 +562,9 @@ void Window::screenshotModules(const std::string& screenshotsDir, float zoom) {
fbw->addChild(mw); fbw->addChild(mw);
fbw->box.size = mw->box.size; fbw->box.size = mw->box.size;


// Step to allow the ModuleWidget state to set its default appearance.
fbw->step();

// Draw to framebuffer // Draw to framebuffer
fbw->render(math::Vec(zoom, zoom), math::Vec(0, 0)); fbw->render(math::Vec(zoom, zoom), math::Vec(0, 0));




Loading…
Cancel
Save