We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8536c1c commit e7a9eafCopy full SHA for e7a9eaf
1 file changed
Plugin/src/SofaPython3/DataHelper.cpp
@@ -48,14 +48,14 @@ std::string toSofaParsableString(const py::handle& p)
48
if(py::isinstance<py::str>(p))
49
return py::str(p);
50
51
- // Insure compatibility with data field code returning value instead of data.
+ // If the object is a data field we take its value to copy them.
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->getLinkPath();
+ return data->getValueString();
56
}
57
58
- // If the object is a numpy array we convert it to a list then to a sofa string
+ // If the object is a numpy array we convert it to a list then to a sofa string.
59
if(py::isinstance<py::array>(p))
60
61
py::object o = p.attr("tolist")();
0 commit comments