Fix: Spreadsheet row filters unimplemented for boolean type
This was lost in 474adc6f883c2d5a85
This commit is contained in:
parent
c25181be4d
commit
bcdb90b961
Notes:
blender-bot
2025-02-14 01:03:51 +00:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
@ -71,6 +71,14 @@ static void apply_row_filter(const SpreadsheetRowFilter &row_filter,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (column_data.type().is<bool>()) {
|
||||
const bool value = (row_filter.flag & SPREADSHEET_ROW_FILTER_BOOL_VALUE) != 0;
|
||||
apply_filter_operation(
|
||||
column_data.typed<bool>(),
|
||||
[&](const bool cell) { return cell == value; },
|
||||
prev_mask,
|
||||
new_indices);
|
||||
}
|
||||
else if (column_data.type().is<int8_t>()) {
|
||||
const int value = row_filter.value_int;
|
||||
switch (row_filter.operation) {
|
||||
@ -274,7 +282,6 @@ static void apply_row_filter(const SpreadsheetRowFilter &row_filter,
|
||||
}
|
||||
else if (column_data.type().is<InstanceReference>()) {
|
||||
const StringRef value = row_filter.value_string;
|
||||
|
||||
apply_filter_operation(
|
||||
column_data.typed<InstanceReference>(),
|
||||
[&](const InstanceReference cell) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user