From: vsv Date: Fri, 31 Jan 2020 13:13:14 +0000 (+0300) Subject: Issue #3135: Provide standard mode of building for non-dragging objects X-Git-Tag: V9_5_0a1~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6d93bc8be11df99d82dc34232e924502333f0d6;p=modules%2Fshaper.git Issue #3135: Provide standard mode of building for non-dragging objects --- 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