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.
This commit is contained in:
parent
9f8ece70ee
commit
e5af9a12d7
Notes:
blender-bot
2023-02-14 05:59:31 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #101262, Segfault entering Edit mode while Spreadsheet Open
|
@ -265,6 +265,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: {
|
||||
|
|
Loading…
Reference in New Issue