Comment 4 for bug 411572

Revision history for this message
Sergei Dorofeenko (sergei.dorofeenko) wrote :

Nothing special. Just click on Controller button or type yade.qt.Controller() in the console.

ps. May be important that I use a patch to gui/qt3/GLViewer.cpp because without it Viewer is not works (only black window).

===================================================================
--- gui/qt3/GLViewer.cpp (revision 1934)
+++ gui/qt3/GLViewer.cpp (working copy)
@@ -46,17 +46,17 @@
 void GLViewer::paintGL(void){
  /* paintGL encapsulated preDraw, draw and postDraw within QGLViewer. If the mutex cannot be locked,
   * we just return without repainting */
- #if BOOST_VERSION<103500
- boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex);
- if(lock.locked()){
- #else
- boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex,boost::defer_lock);
- if(lock.owns_lock()){
- #endif
- this->makeCurrent();
+ //#if BOOST_VERSION<103500
+ // boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex);
+ // if(lock.locked()){
+ //#else
+ // boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex,boost::defer_lock);
+ // if(lock.owns_lock()){
+ //#endif
+ //this->makeCurrent();
    QGLViewer::paintGL();
- }
- this->doneCurrent();
+ //}
+ //this->doneCurrent();
 }