Files
test/source/blender/blenkernel
Jacques Lucke 522f9c9834 Volumes: improve tree access token api
There was one functional issue with the previous API which was its
use in `VolumeGrid<T>::grid_for_write(tree_token)`. The issue was
that the tree token had to be received before the grid is accessed.
However, this `grid_for_write` method might create a copy of the
`VolumeGridData` internally and if it does, the passed in `tree_token`
corresponds to the wrong tree.

The solution is to output the token as part of the method. This has two
additional benefits:
* The API is more safe, because one can't pass an r-value into the methods
  anymore. This generally shouldn't be done, because the token should
  live at least as long as the OpenVDB tree is used and shouldn't be freed
  immediatly.
* The API is a bit simpler, because it's not necessary to call the
  `VolumeGrid.tree_access_token()` method anymore.
2024-01-10 15:20:29 +01:00
..
2024-01-03 13:38:14 +01:00
2023-12-01 10:29:59 -08:00
2024-01-03 13:38:14 +01:00
2023-07-04 17:03:02 +02:00
2023-08-25 09:40:42 +10:00
2023-11-27 09:30:52 +11:00
2023-09-27 13:03:29 +10:00
2023-08-18 08:56:12 +10:00
2023-08-30 22:36:36 +02:00