AttributeRefAttrPtr aCenterAttr =
myBaseConstraint->refattr(SketchPlugin_MultiRotation::CENTER_ID());
std::shared_ptr<PlaneGCSSolver_PointWrapper> aRotCenter =
- std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(myStorage->entity(aCenterAttr));
+ std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(
+ myStorage->entity(AttributePtr(aCenterAttr)));
if (aRotCenter)
{
GCSPointPtr aCenterPoint = aRotCenter->point();
for (int i = 0; i < 2; ++i)
{
std::shared_ptr<PlaneGCSSolver_PointWrapper> aPointWrapper =
- std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(myStorage->entity(aStartEnd[i]));
+ std::dynamic_pointer_cast<PlaneGCSSolver_PointWrapper>(
+ myStorage->entity(AttributePtr(aStartEnd[i])));
if (aPointWrapper)
{
GCSPointPtr aPnt = aPointWrapper->point();