]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3135: Provide standard mode of building for non-dragging objects
authorvsv <vsv@opencascade.com>
Fri, 31 Jan 2020 13:13:14 +0000 (16:13 +0300)
committervsv <vsv@opencascade.com>
Fri, 31 Jan 2020 13:13:35 +0000 (16:13 +0300)
src/PartSet/PartSet_SketcherMgr.h
src/PartSet/PartSet_SketcherReentrantMgr.cpp

index 033c123af6f6ecb278892017cfb558b7b23fc87f..cd8e3380f64e76eec5fc23539b16a46824dafc61 100644 (file)
@@ -382,6 +382,9 @@ public:
   */
   virtual void processEvent(const std::shared_ptr<Events_Message>& 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
index 73ec80ebfb1bfab200f4fbc1f51807200790879b..0e098c8e6910591754b6d57b4deeb3a266633a41 100644 (file)
@@ -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<ModuleBase_OperationFeature*>