Blender Git Loki

Git Commits -> Revision 205ccb8

Revision 205ccb8 by Jacques Lucke (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
Cleanup: simplify resource scope methods

Previously, a debug name had to be passed to all methods
that added a resource to the `ResourceScope`. The idea was
that this would make it easier to find certain bugs. In reality
I never found this to be useful, and it was mostly annoying.
The thing is, something that is in a resource scope never leaks
(unless the resource scope is not destructed of course).

Removing the name parameter makes the structure easier to use.

Commit Details:

Full Hash: 205ccb8bbeca42e1174b66f9677eb8c8d5e93da8
Parent Commit: cbd43ce
Committed By: Pablo Vazquez
Lines Changed: +67, -98

12 Modified Paths:

/source/blender/blenkernel/intern/attribute_access.cc (+2, -2) (Diff)
/source/blender/blenlib/BLI_resource_scope.hh (+25, -52) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+1, -1) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc (+1, -1) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_row_filter.cc (+1, -1) (Diff)
/source/blender/functions/FN_field.hh (+7, -7) (Diff)
/source/blender/functions/FN_multi_function_params.hh (+14, -16) (Diff)
/source/blender/functions/intern/field.cc (+9, -11) (Diff)
/source/blender/functions/tests/FN_field_test.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_input_index.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_input_normal.cc (+4, -4) (Diff)
/source/blender/nodes/NOD_multi_function.hh (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021