Salome HOME
Make the expressions in double attributes and points updated after the parameter...
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.cpp
index 4c13dba4958abb832558f62db3d307c557470e4e..b31b3b55217d0b0bd94b538207392dc58d90ba14 100644 (file)
@@ -13,6 +13,8 @@
 #include <GeomAlgoAPI_PointBuilder.h>
 #include <GeomAPI_Pnt.h>
 
+#include <Config_PropManager.h>
+
 using namespace std;
 
 ConstructionPlugin_Point::ConstructionPlugin_Point()
@@ -27,9 +29,9 @@ const std::string& ConstructionPlugin_Point::getKind()
 
 void ConstructionPlugin_Point::initAttributes()
 {
-  data()->addAttribute(ConstructionPlugin_Point::X(), ModelAPI_AttributeDouble::type());
-  data()->addAttribute(ConstructionPlugin_Point::Y(), ModelAPI_AttributeDouble::type());
-  data()->addAttribute(ConstructionPlugin_Point::Z(), ModelAPI_AttributeDouble::type());
+  data()->addAttribute(ConstructionPlugin_Point::X(), ModelAPI_AttributeDouble::typeId());
+  data()->addAttribute(ConstructionPlugin_Point::Y(), ModelAPI_AttributeDouble::typeId());
+  data()->addAttribute(ConstructionPlugin_Point::Z(), ModelAPI_AttributeDouble::typeId());
 }
 
 void ConstructionPlugin_Point::execute()