From: vsv Date: Tue, 2 Dec 2014 13:44:35 +0000 (+0300) Subject: Icon for placement operation X-Git-Tag: V_0.6.0^2~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ef2ca714e79988d13c52c4ec0c6657e1130fb42;p=modules%2Fshaper.git Icon for placement operation --- diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index cbe584eab..5177058f3 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -7,7 +7,7 @@ - + diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 3cb8ce247..490ffdfd9 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -310,7 +310,7 @@ void PartSet_Module::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseEvent* QList aObjects = aSelect->getHighlighted(); myEditingFeatures.clear(); myEditingAttr.clear(); - if (aObjects.size() > 0) { + if (aObjects.size() == 1) { foreach(ModuleBase_ViewerPrs aPrs, aObjects) { FeaturePtr aFeature = ModelAPI_Feature::feature(aObjects.first().object()); if (aFeature) { diff --git a/src/PartSet/PartSet_icons.qrc b/src/PartSet/PartSet_icons.qrc index d0985d40c..b0bffcc5a 100644 --- a/src/PartSet/PartSet_icons.qrc +++ b/src/PartSet/PartSet_icons.qrc @@ -27,5 +27,6 @@ icons/radius_constr.png icons/shape_group.png icons/fixed.png + icons/placement.png diff --git a/src/PartSet/icons/placement.png b/src/PartSet/icons/placement.png new file mode 100644 index 000000000..906a1ad49 Binary files /dev/null and b/src/PartSet/icons/placement.png differ