data()->addAttribute(REVERSED_ID(), ModelAPI_AttributeBoolean::typeId()); // #3
// SketchPlugin_Constraint::ENTITY_A() stores original entities
+ AttributeRefListPtr entaAttr = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>
+ (data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(),
+ ModelAPI_AttributeRefList::typeId())); // #4
bool badOrder = false;
if (anEdgesAttr->isInitialized()) { // restoring data from saved study
- AttributeRefListPtr entaAttr = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>
- (data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(),
- ModelAPI_AttributeRefList::typeId())); // #4
-
badOrder = !entaAttr->isInitialized();
// we have not found AttributeRefList at 4th position,
// so, we suppose a study with wrong order of offset attributes
ModelAPI_AttributeBoolean::typeId(),
4)); // #4
- data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(),
- ModelAPI_AttributeRefList::typeId(),
- 5); // #5
+ entaAttr = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>
+ (data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(),
+ ModelAPI_AttributeRefList::typeId(),
+ 5)); // #5
}
// store offset entities