]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1671: decrease point selection zone
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 11 Nov 2016 14:45:09 +0000 (17:45 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 11 Nov 2016 14:45:09 +0000 (17:45 +0300)
src/XGUI/SHAPER.xml
src/XGUI/XGUI_Displayer.cpp

index 92f21fb351e55705df95a9ba8e0d31c0e67133f0..e93ecf932f1c232146e28f306ddf3f0720fb3618 100644 (file)
@@ -14,7 +14,7 @@
     <parameter name="face-selection" value="true" />
     <parameter name="edge-selection" value="true" />
     <parameter name="vertex-selection" value="true" />
-    <parameter name="point-selection-sensitivity" value="20" />
+    <parameter name="point-selection-sensitivity" value="12" />
     <parameter name="edge-selection-sensitivity" value="2" />
   </section>
   <section name="Menu" >
index 414490ede543c5a61b341fbfd3c6d2bbbadad33f..b90a936c6ae15cabd03baef4936d7774a0c3a148 100644 (file)
@@ -936,7 +936,7 @@ void XGUI_Displayer::activateAIS(const Handle(AIS_InteractiveObject)& theIO,
       if (theMode == getSelectionMode(TopAbs_VERTEX))
         aPrecision = ModuleBase_Preferences::resourceMgr()->doubleValue("Viewer",
                                                                     "point-selection-sensitivity",
-                                                                        20);
+                                                                        12);
       else if ((theMode == getSelectionMode(TopAbs_EDGE)) ||
                (theMode == getSelectionMode(TopAbs_WIRE)))
         aPrecision = theIO->Width() +