diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-22 01:34:30 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-22 01:34:30 +0300 |
commit | 20dc8393192fcf5e5183816134436c1e871b852d (patch) | |
tree | d2394622d44ad248f3cb3d1c22e1f2c5b146f9ef /source/blender/editors | |
parent | 77dcfac8a38d81b3ed6dd5b6c85f80a31ecc562b (diff) |
Fix T101262: Crash in spreadsheet selection filter with empty domain
The BMesh selection virtual array was empty. There are a few different
places we could add an "empty" check here, but at the top of the
function is the simplest for now.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc index 4703eacdcb9..fd2ac4d39a1 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc @@ -271,6 +271,9 @@ IndexMask GeometryDataSource::apply_selection_filter(Vector<int64_t> &indices) c { std::lock_guard lock{mutex_}; const IndexMask full_range(this->tot_rows()); + if (full_range.is_empty()) { + return full_range; + } switch (component_->type()) { case GEO_COMPONENT_TYPE_MESH: { |