Skip to content

Commit e2d1234

Browse files
committed
SofaPython3] Do link by default.
Signed-off-by: Damien Marchal <damien.marchal@univ-lille1.fr>
1 parent 5c12fc4 commit e2d1234

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Plugin/src/SofaPython3/DataHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ std::string toSofaParsableString(const py::handle& p)
4848
if(py::isinstance<py::str>(p))
4949
return py::str(p);
5050

51-
// If the object is a data field we take its value to copy them.
51+
// If the object is a data field we link the data field
5252
if(py::isinstance<sofa::core::objectmodel::BaseData>(p))
5353
{
5454
sofa::core::objectmodel::BaseData* data = py::cast<sofa::core::objectmodel::BaseData*>(p);
55-
return data->getValueString();
55+
return data->getLinkPath();
5656
}
5757

5858
// If the object is a numpy array we convert it to a list then to a sofa string.

0 commit comments

Comments
 (0)