Sketcher: ViewProviderSketch inhibit update if internal transaction is ongoing

==============================================================================

Inhibit ViewProviderSketch updateData with invalid data (internal transaction).

Trigger update internally for internal transactions in SketchObject via touched()
so as to trigger updateData.

This leads to a reduction of updateData calls.
This commit is contained in:
Abdullah Tahiri
2020-06-15 19:20:36 +02:00
committed by abdullahtahiriyo
parent 736aa11f6e
commit 5119513488
3 changed files with 20 additions and 9 deletions

View File

@@ -378,6 +378,8 @@ public:
bool isExternalAllowed(App::Document *pDoc, App::DocumentObject *pObj, eReasonList* rsn = 0) const;
bool isCarbonCopyAllowed(App::Document *pDoc, App::DocumentObject *pObj, bool & xinv, bool & yinv, eReasonList* rsn = 0) const;
bool isPerformingInternalTransaction() const {return internaltransaction;};
public:
// Analyser functions
int autoConstraint(double precision = Precision::Confusion() * 1000, double angleprecision = M_PI/20, bool includeconstruction = true);