Gui: add enum types to handle background gradients

This fixes some API flaws where booleans were used to distinguish between three different types
This commit is contained in:
wmayer
2023-04-04 17:12:14 +02:00
committed by wwmayer
parent 2845cd55a0
commit d6190cb79c
6 changed files with 97 additions and 52 deletions

View File

@@ -437,7 +437,7 @@ Py::Object View3DInventorViewerPy::setBackgroundColor(const Py::Tuple& args)
}
try {
SbColor col(r,g,b);
_viewer->setGradientBackgroundColor(col, col, false);
_viewer->setGradientBackgroundColor(col, col);
return Py::None();
}
catch (const Base::Exception& e) {