Skip to content

Commit 44dbe9c

Browse files
committed
[Sofapython3] Restore "copy" by default behavior while setting data from data.
1 parent 2eda47f commit 44dbe9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/src/SofaPython3/DataHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ std::string toSofaParsableString(const py::handle& p)
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->getLinkPath();
55+
return data->getValueString();
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)