]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAddons/addons_Features.py
Salome HOME
Rework Sketch Rectangle feature.
[modules/shaper.git] / src / PythonAddons / addons_Features.py
index 207dd78c4e0faf71cbb0ec191b937cb3dde2b2aa..4c302a0128c37cad3fd1c5a70690cb04561c4a1c 100644 (file)
@@ -21,7 +21,7 @@
 """
 
 import ModelAPI
-#from macros.rectangle.feature import SketchPlugin_Rectangle
+from macros.rectangle.feature import SketchPlugin_Rectangle
 from macros.compoundVertices.feature import compoundVertices
 from macros.importParameters.feature import importParameters
 
@@ -43,10 +43,9 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin):
         """Override ModelAPI_Plugin.createFeature()"""
         aFeature = None
 
-        #if theFeatureID == SketchPlugin_Rectangle.ID():
-         #   aFeature = SketchPlugin_Rectangle().__disown__()
-        #el
-        if theFeatureID == compoundVertices.ID():
+        if theFeatureID == SketchPlugin_Rectangle.ID():
+            aFeature = SketchPlugin_Rectangle().__disown__()
+        elif theFeatureID == compoundVertices.ID():
             aFeature = compoundVertices().__disown__()
         elif theFeatureID == importParameters.ID():
             aFeature = importParameters().__disown__()