Make stereo modes work again
Be aware that stereo rendering based on SoRenderManager does not allow background colors as the opengl buffers are cleared before rendering. As FreeCAD draws the background before the standart coin rendering the background gets erased again.
This commit is contained in:
@@ -1046,7 +1046,7 @@ Py::Object View3DInventorPy::setStereoType(const Py::Tuple& args)
|
||||
if (stereomode < 0 || stereomode > 4)
|
||||
throw Py::Exception("Out of range");
|
||||
Quarter::SoQTQuarterAdaptor::StereoMode mode = Quarter::SoQTQuarterAdaptor::StereoMode(stereomode);
|
||||
_view->getViewer()->setProperty("StereoMode",mode);
|
||||
_view->getViewer()->setStereoMode(mode);
|
||||
return Py::None();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user