Cleanup: make format
This commit is contained in:
@@ -893,7 +893,8 @@ static int select_random_exec(bContext *C, wmOperator *op)
|
||||
const eAttrDomain selection_domain = eAttrDomain(curves_id->selection_domain);
|
||||
|
||||
IndexMaskMemory memory;
|
||||
const IndexMask random_elements = random_mask(curves, selection_domain, seed, probability, memory);
|
||||
const IndexMask random_elements = random_mask(
|
||||
curves, selection_domain, seed, probability, memory);
|
||||
|
||||
const bool was_anything_selected = has_anything_selected(curves);
|
||||
bke::GSpanAttributeWriter selection = ensure_selection_attribute(
|
||||
|
||||
@@ -124,21 +124,22 @@ class TextureMarginMap {
|
||||
TextureMarginMap *m = static_cast<TextureMarginMap *>(map);
|
||||
if (m->mask_) {
|
||||
if (m->write_mask_) {
|
||||
/* if there is a mask and write_mask_ is true, write to the mask */
|
||||
/* if there is a mask and write_mask_ is true, write to the mask */
|
||||
m->mask_[y * m->w_ + x] = 1;
|
||||
m->set_pixel(x, y, m->value_to_store_);
|
||||
} else {
|
||||
/* if there is a mask and write_mask_ is false, read the mask
|
||||
* to decide if the map needs to be written
|
||||
*/
|
||||
if (m->mask_[y*m->w_ + x] != 0 ) {
|
||||
}
|
||||
else {
|
||||
/* if there is a mask and write_mask_ is false, read the mask
|
||||
* to decide if the map needs to be written
|
||||
*/
|
||||
if (m->mask_[y * m->w_ + x] != 0) {
|
||||
m->set_pixel(x, y, m->value_to_store_);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
m->set_pixel(x, y, m->value_to_store_);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* The map contains 2 kinds of pixels: DijkstraPixels and polygon indices. The top bit determines
|
||||
|
||||
Reference in New Issue
Block a user