GPv3: Overlay: only show visible and editable materials. #115740
|
@ -191,7 +191,7 @@ int64_t count_booleans(const VArray<bool> &varray, const IndexMask &mask)
|
|||
return *static_cast<const bool *>(info.data) ? mask.size() : 0;
|
||||
}
|
||||
casey-bianco-davis marked this conversation as resolved
|
||||
int64_t value = 0;
|
||||
mask.foreach_index([&](const int64_t init) { value += int64_t(varray[init]); });
|
||||
mask.foreach_index([&](const int64_t i) { value += int64_t(varray[i]); });
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Since this is a generic version, this should be
value += (varray[i] ? 1 : 0);
orvalue += int(varray[i])