Blender Git Commit Log

Git Commits -> Revision dee0b56

Revision dee0b56 by Jacques Lucke (master)
September 14, 2021, 14:08 (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: dee0b56b9216de8f37589b15be2d21cc1b946773
Parent Commit: 426e266
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021