X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Extrusion.cpp;h=7c6a0eaebb82f4763ebcd333163a2e127c346648;hb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;hp=b232f18e7bd732b7f9d0fa8307654beb1b12e3c6;hpb=037c2e978c242407cc2e4357a84c3ffead3e877d;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp index b232f18e7..7c6a0eaeb 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp @@ -29,13 +29,13 @@ void FeaturesPlugin_Extrusion::initAttributes() void FeaturesPlugin_Extrusion::execute() { - boost::shared_ptr aFaceRef = - boost::dynamic_pointer_cast(data()->attribute(FeaturesPlugin_Extrusion::FACE_ID())); + boost::shared_ptr aFaceRef = boost::dynamic_pointer_cast< + ModelAPI_AttributeReference>(data()->attribute(FeaturesPlugin_Extrusion::FACE_ID())); if (!aFaceRef) return; - boost::shared_ptr aConstr = - boost::dynamic_pointer_cast(aFaceRef->value()); - if (!aConstr) + boost::shared_ptr aConstr = boost::dynamic_pointer_cast< + ModelAPI_ResultConstruction>(aFaceRef->value()); + if (!aConstr) return; boost::shared_ptr aFace = aConstr->shape(); if (!aFace)