X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAddons%2Faddons_Features.py;h=d28db61ab6a461154707c619d61ac6819bf3d976;hb=b6cb9a5e9ecc1c5dae69d686fa73a8afec92d04f;hp=50f82085613d827d7c11ab3f21fe9c2ed81fba0e;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/PythonAddons/addons_Features.py b/src/PythonAddons/addons_Features.py index 50f820856..d28db61ab 100644 --- a/src/PythonAddons/addons_Features.py +++ b/src/PythonAddons/addons_Features.py @@ -21,7 +21,6 @@ """ import ModelAPI -from macros.box.feature import BoxFeature from macros.rectangle.feature import SketchPlugin_Rectangle @@ -42,10 +41,7 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): """Override ModelAPI_Plugin.createFeature()""" aFeature = None - if theFeatureID == BoxFeature.ID(): - aFeature = BoxFeature().__disown__() - - elif theFeatureID == SketchPlugin_Rectangle.ID(): + if theFeatureID == SketchPlugin_Rectangle.ID(): aFeature = SketchPlugin_Rectangle().__disown__() else: