Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-07-22 18:49:09 +0300
committerHans Goudey <h.goudey@me.com>2022-07-22 18:49:09 +0300
commit98395e0bdfc849e2d2770052c6e8651a42500608 (patch)
tree7d5a6fe49a04398f5ffd3f6656675305e7112205 /source/blender/nodes
parentc40971d79a887820d621705b29f65f833d9b9f52 (diff)
Cleanup: Use r_ prefix for boolean return parameters
Also rearrange some lines to simplify logic.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc b/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc
index 2a784430683..dbd68f4c783 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc
@@ -90,13 +90,13 @@ static void try_capture_field_on_geometry(GeometryComponent &component,
const StringRef name,
const eAttrDomain domain,
const GField &field,
- std::atomic<bool> &failure)
+ std::atomic<bool> &r_failure)
{
- const int domain_size = component.attribute_domain_size(domain);
+ MutableAttributeAccessor attributes = *component.attributes_for_write();
+ const int domain_size = attributes.domain_size(domain);
if (domain_size == 0) {
return;
}
- MutableAttributeAccessor attributes = *component.attributes_for_write();
GeometryComponentFieldContext field_context{component, domain};
const IndexMask mask{IndexMask(domain_size)};
@@ -133,7 +133,7 @@ static void try_capture_field_on_geometry(GeometryComponent &component,
* it's required, and adding the attribute might fail if the domain or type is incorrect. */
type.destruct_n(buffer, domain_size);
MEM_freeN(buffer);
- failure = true;
+ r_failure = true;
}
static void node_geo_exec(GeoNodeExecParams params)