diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-26 16:06:04 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-26 16:06:04 +0300 |
commit | db45292d8e0c29f399cba191e33f8388d9254357 (patch) | |
tree | c5540f9c433449f1d0e1d05a9a7daa209db8b62f /source/blender/blenkernel/intern/customdata.cc | |
parent | b7458f909cc2ada343207603f0ecbf0c42b28173 (diff) |
Cleanup: Move anonymous attribute removal to geometry component
Implementing removal of anonymous attributes with `GeometryComponent`
instead of `Mesh` makes it more reusable for other types like curves.
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.cc')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/blenkernel/intern/customdata.cc b/source/blender/blenkernel/intern/customdata.cc index 22db90a06b0..a5138856d53 100644 --- a/source/blender/blenkernel/intern/customdata.cc +++ b/source/blender/blenkernel/intern/customdata.cc @@ -2883,24 +2883,6 @@ void CustomData_free_layers(CustomData *data, int type, int totelem) } } -void CustomData_free_layers_anonymous(struct CustomData *data, int totelem) -{ - while (true) { - bool found_anonymous_layer = false; - for (int i = 0; i < data->totlayer; i++) { - const CustomDataLayer *layer = &data->layers[i]; - if (layer->anonymous_id != nullptr) { - CustomData_free_layer(data, layer->type, totelem, i); - found_anonymous_layer = true; - break; - } - } - if (!found_anonymous_layer) { - break; - } - } -} - bool CustomData_has_layer(const CustomData *data, int type) { return (CustomData_get_layer_index(data, type) != -1); |