We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c12fc4 commit e2d1234Copy full SHA for e2d1234
1 file changed
Plugin/src/SofaPython3/DataHelper.cpp
@@ -48,11 +48,11 @@ std::string toSofaParsableString(const py::handle& p)
48
if(py::isinstance<py::str>(p))
49
return py::str(p);
50
51
- // If the object is a data field we take its value to copy them.
+ // If the object is a data field we link the data field
52
if(py::isinstance<sofa::core::objectmodel::BaseData>(p))
53
{
54
sofa::core::objectmodel::BaseData* data = py::cast<sofa::core::objectmodel::BaseData*>(p);
55
- return data->getValueString();
+ return data->getLinkPath();
56
}
57
58
// If the object is a numpy array we convert it to a list then to a sofa string.
0 commit comments