Skip to content

Commit 9be1217

Browse files
Merge pull request sofa-framework#276 from CRIStAL-PADR/pr-fix-regression-introduced-in-pr243
[SofaPyhon3/Plugin] Fix regression introduced in PR sofa-framework#243
2 parents 64ecd52 + 00bd269 commit 9be1217

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
@@ -294,7 +294,7 @@ size_t getSize(BaseData* self)
294294

295295
py::buffer_info toBufferInfo(BaseData& m)
296296
{
297-
scoped_read_access guard(&m);
297+
m.updateIfDirty();
298298

299299
const AbstractTypeInfo& nfo { *m.getValueTypeInfo() };
300300
auto itemNfo = nfo.BaseType();

0 commit comments

Comments
 (0)