-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
for(; anIter.More(); anIter.Next()) {
TCollection_AsciiString aThisName(Handle(TDataStd_Name)::DownCast(anIter.Value())->Get());
if (theID == aThisName.ToCString()) {
- TDF_Label aLab = anIter.Value()->Label();
+ TDF_Label aChildLab = anIter.Value()->Label();
Handle(TDataStd_Name) aGName;
- if (aLab.FindAttribute(kGroupAttributeGroupID, aGName)) {
+ if (aChildLab.FindAttribute(kGroupAttributeGroupID, aGName)) {
TCollection_AsciiString aGroupName(aGName->Get());
if (theGroup == aGroupName.ToCString()) {
- return addAttribute(theGroup + "__" + theID, theAttrType, aLab.Tag());
+ return addAttribute(theGroup + "__" + theID, theAttrType, aChildLab.Tag());
}
}
}
} else {
// trim: need to redisplay or set color in the python script
if (myObject && (theAttr->attributeType() == "Point2D" || theAttr->id() == "Color" ||
- theAttr->id() == "Transparency" || theAttr->id() == "Deflection")) {
+ theAttr->id() == "Transparency" || theAttr->id() == "Deflection" ||
+ theAttr->id() == "Iso_lines" || theAttr->id() == "Show_Iso_lines")) {
static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY);
ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent);
}
if (aRef->isObject()) {
aReferenced.push_back(aRef->object());
} else {
- AttributePtr anAttr = aRef->attr();
- if (anAttr.get())
- aReferenced.push_back(anAttr->owner());
+ AttributePtr aReferredAttr = aRef->attr();
+ if (aReferredAttr.get())
+ aReferenced.push_back(aReferredAttr->owner());
}
} else if (aType == ModelAPI_AttributeRefList::typeId()) { // list of references
aReferenced = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(anAttr)->list();