[Bf-blender-cvs] [1a9cf9c745f] master: Cleanup: add missing trailing underscores for private data members
Jacques Lucke
noreply at git.blender.org
Tue Jan 3 12:40:37 CET 2023
Commit: 1a9cf9c745f1fde4b836cbd402b0732c5a544d3f
Author: Jacques Lucke
Date: Tue Jan 3 12:40:17 2023 +0100
Branches: master
https://developer.blender.org/rB1a9cf9c745f1fde4b836cbd402b0732c5a544d3f
Cleanup: add missing trailing underscores for private data members
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_uv_pack_islands.cc
M source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_uv_pack_islands.cc b/source/blender/nodes/geometry/nodes/node_geo_uv_pack_islands.cc
index 47ab0de3814..a0f7f58c03b 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_uv_pack_islands.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_uv_pack_islands.cc
@@ -93,10 +93,10 @@ static VArray<float3> construct_uv_gvarray(const Mesh &mesh,
class PackIslandsFieldInput final : public bke::MeshFieldInput {
private:
- const Field<bool> selection_field;
- const Field<float3> uv_field;
- const bool rotate;
- const float margin;
+ const Field<bool> selection_field_;
+ const Field<float3> uv_field_;
+ const bool rotate_;
+ const float margin_;
public:
PackIslandsFieldInput(const Field<bool> selection_field,
@@ -104,10 +104,10 @@ class PackIslandsFieldInput final : public bke::MeshFieldInput {
const bool rotate,
const float margin)
: bke::MeshFieldInput(CPPType::get<float3>(), "Pack UV Islands Field"),
- selection_field(selection_field),
- uv_field(uv_field),
- rotate(rotate),
- margin(margin)
+ selection_field_(selection_field),
+ uv_field_(uv_field),
+ rotate_(rotate),
+ margin_(margin)
{
category_ = Category::Generated;
}
@@ -116,13 +116,13 @@ class PackIslandsFieldInput final : public bke::MeshFieldInput {
const eAttrDomain domain,
const IndexMask /*mask*/) const final
{
- return construct_uv_gvarray(mesh, selection_field, uv_field, rotate, margin, domain);
+ return construct_uv_gvarray(mesh, selection_field_, uv_field_, rotate_, margin_, domain);
}
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
{
- selection_field.node().for_each_field_input_recursive(fn);
- uv_field.node().for_each_field_input_recursive(fn);
+ selection_field_.node().for_each_field_input_recursive(fn);
+ uv_field_.node().for_each_field_input_recursive(fn);
}
std::optional<eAttrDomain> preferred_domain(const Mesh & /*mesh*/) const override
diff --git a/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc b/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc
index eeca22517e3..9ababee3f98 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_uv_unwrap.cc
@@ -132,11 +132,11 @@ static VArray<float3> construct_uv_gvarray(const Mesh &mesh,
class UnwrapFieldInput final : public bke::MeshFieldInput {
private:
- const Field<bool> selection;
- const Field<bool> seam;
- const bool fill_holes;
- const float margin;
- const GeometryNodeUVUnwrapMethod method;
+ const Field<bool> selection_;
+ const Field<bool> seam_;
+ const bool fill_holes_;
+ const float margin_;
+ const GeometryNodeUVUnwrapMethod method_;
public:
UnwrapFieldInput(const Field<bool> selection,
@@ -145,11 +145,11 @@ class UnwrapFieldInput final : public bke::MeshFieldInput {
const float margin,
const GeometryNodeUVUnwrapMethod method)
: bke::MeshFieldInput(CPPType::get<float3>(), "UV Unwrap Field"),
- selection(selection),
- seam(seam),
- fill_holes(fill_holes),
- margin(margin),
- method(method)
+ selection_(selection),
+ seam_(seam),
+ fill_holes_(fill_holes),
+ margin_(margin),
+ method_(method)
{
category_ = Category::Generated;
}
@@ -158,13 +158,13 @@ class UnwrapFieldInput final : public bke::MeshFieldInput {
const eAttrDomain domain,
const IndexMask /*mask*/) const final
{
- return construct_uv_gvarray(mesh, selection, seam, fill_holes, margin, method, domain);
+ return construct_uv_gvarray(mesh, selection_, seam_, fill_holes_, margin_, method_, domain);
}
void for_each_field_input_recursive(FunctionRef<void(const FieldInput &)> fn) const
{
- selection.node().for_each_field_input_recursive(fn);
- seam.node().for_each_field_input_recursive(fn);
+ selection_.node().for_each_field_input_recursive(fn);
+ seam_.node().for_each_field_input_recursive(fn);
}
std::optional<eAttrDomain> preferred_domain(const Mesh & /*mesh*/) const override
More information about the Bf-blender-cvs
mailing list