Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Model / Model_Data.cpp
index 0bb5a12c82268f7e9075e58f2335eaaf98ad68af..5b26417a200191515540f1806624487bd9f6b266 100644 (file)
@@ -49,8 +49,10 @@ void Model_Data::addAttribute(string theID, string theAttrType)
   else if (theAttrType == GeomData_Point2D::type())
     anAttr = new GeomData_Point2D(anAttrLab);
 
-  if (anAttr)
+  if (anAttr) {
     myAttrs[theID] = boost::shared_ptr<ModelAPI_Attribute>(anAttr);
+    anAttr->setFeature(myFeature);
+  }
   else
     ; // TODO: generate error on unknown attribute request and/or add mechanism for customization
 }