0029750: Samples - function arrows are not updated by moving a node in FuncDemo qt...
[occt.git] / samples / qt / FuncDemo / src / ShapeSaverDriver.cpp
index 1f14881..15a39f9 100644 (file)
@@ -56,10 +56,14 @@ Standard_Integer ShapeSaverDriver::Execute(Handle(TFunction_Logbook)& log) const
         }
     }
 
-    //BRepTools::Write(C, "result.brep");
+    if (myMutex)
+        myMutex->Lock();
 
     TNaming_Builder Bui(Label());
     Bui.Generated(C);
 
+    if (myMutex)
+        myMutex->Unlock();
+
     return BaseDriver::Execute(log);
 }
\ No newline at end of file