From d6d93bc8be11df99d82dc34232e924502333f0d6 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 31 Jan 2020 16:13:14 +0300 Subject: [PATCH] Issue #3135: Provide standard mode of building for non-dragging objects --- src/PartSet/PartSet_SketcherMgr.h | 6 +++--- src/PartSet/PartSet_SketcherReentrantMgr.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PartSet/PartSet_SketcherMgr.h b/src/PartSet/PartSet_SketcherMgr.h index 033c123af..cd8e3380f 100644 --- a/src/PartSet/PartSet_SketcherMgr.h +++ b/src/PartSet/PartSet_SketcherMgr.h @@ -382,6 +382,9 @@ public: */ virtual void processEvent(const std::shared_ptr& theMessage); + /// Returns true if current mode of objects creation is by drag mouse + bool isDragModeCreation() const; + public slots: /// Process sketch plane selected event @@ -469,9 +472,6 @@ private: void visualizeFeature(const FeaturePtr& theFeature, const bool isEditOperation, const bool isToDisplay, const bool isFlushRedisplay = true); - /// Returns true if current mode of objects creation is by drag mouse - bool isDragModeCreation() const; - private: /// Updates selection priority of the presentation /// \param theObject object to find a presentation which will be corrected diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index 73ec80ebf..0e098c8e6 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -359,7 +359,7 @@ void PartSet_SketcherReentrantMgr::onNoMoreWidgets(const std::string& thePreviou return; } - if (Config_PropManager::boolean(SKETCH_TAB_NAME, "create_by_dragging")) + if (module()->sketchMgr()->isDragModeCreation()) return; ModuleBase_OperationFeature* aFOperation = dynamic_cast -- 2.39.2