Commit 69a634a
authored
[SofaPython3/Binding] Do not use the binding cache mecanisme when the data is dirty (Fix sofa issue #2761) (#243)
* [SofaPython3/DataHelper.cpp] update data before accessing its bufferInfo
If not done then the generated buffer info can be out-of-sync the data was dirty.
The buffer info is extracting the raw memory address of the contained data. If the data
array change then the buffer is not valid anymore.
Signed-off-by: Damien Marchal <damien.marchal@univ-lille1.fr>
* [SofaPython3] Refresh the array cache if the data is not valid anymore.
I was convinced that this caching system was gone.
It is not so let's avoid it to provide wrong buffer when the data is not valid anymore.1 parent 603d457 commit 69a634a
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
| |||
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
414 | | - | |
| 416 | + | |
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
| |||
0 commit comments