Skip to content

Commit

Permalink
Mesh: [skip-ci] Fixed wrong Coin3d off-screen renderer backround colo…
Browse files Browse the repository at this point in the history
…r type object SbColor -> SbColor4f
  • Loading branch information
machshev authored and wwmayer committed Dec 15, 2019
1 parent 91f6a5e commit 31ac21e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Mesh/Gui/ViewProvider.cpp
Expand Up @@ -1442,10 +1442,11 @@ std::vector<unsigned long> ViewProviderMesh::getVisibleFacets(const SbViewportRe
#if 0
Gui::SoFCOffscreenRenderer& renderer = Gui::SoFCOffscreenRenderer::instance();
renderer.setViewportRegion(vp);
renderer.setBackgroundColor(SbColor(0.0f, 0.0f, 0.0f));
#else
Gui::SoQtOffscreenRenderer renderer(vp);
renderer.setBackgroundColor(SbColor4f(0.0f, 0.0f, 0.0f));
#endif
renderer.setBackgroundColor(SbColor(0.0f, 0.0f, 0.0f));

QImage img;
renderer.render(root);
Expand Down

0 comments on commit 31ac21e

Please sign in to comment.