// Initialize selection list.
if(theInitFlags & InitBaseObjectsList) {
data()->addAttribute(BASE_OBJECTS_ID(), ModelAPI_AttributeSelectionList::typeId());
+ myCurrentSelectionType = selectionList(BASE_OBJECTS_ID())->selectionType();
}
}
}
//=================================================================================================
-int FeaturesPlugin_CompositeSketch::numberOfSubs(bool forTree) const
+int FeaturesPlugin_CompositeSketch::numberOfSubs(bool /*forTree*/) const
{
ObjectPtr aObj = data()->reference(SKETCH_ID())->value();
return aObj.get() ? 1 : 0;
//=================================================================================================
std::shared_ptr<ModelAPI_Feature> FeaturesPlugin_CompositeSketch::subFeature(const int theIndex,
- bool forTree)
+ bool /*forTree*/)
{
FeaturePtr aSubFeature;
if(theIndex == 0) {
case GeomAPI_Shape::COMPOUND: {
aShapeTypeToExplode = GeomAPI_Shape::COMPOUND;
}
+ default: // [to avoid compilation warnings]
+ break;
}
- int aLateralIndex = 1;
- int aBaseEdgeIndex = 1;
- int aVertexIndex = 1;
- int aBaseVertexIndex = 1;
-
if(aShapeTypeToExplode == GeomAPI_Shape::VERTEX ||
aShapeTypeToExplode == GeomAPI_Shape::COMPOUND) {
theResultBody->loadGeneratedShapes(theMakeShape, theBaseShape, GeomAPI_Shape::VERTEX);
aShapeTypeToExplore = GeomAPI_Shape::COMPOUND;
break;
}
+ default: // [to avoid compilation warnings]
+ break;
}
// Store shapes.