diff options
author | Hans Goudey <h.goudey@me.com> | 2022-11-08 22:33:58 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-08 22:34:11 +0300 |
commit | d80d7b8f70d8aa676ca8a71fbe6604455c429020 (patch) | |
tree | 5403a90be138b9666d8b7b64ed958686be6f9d40 /source/blender/blenkernel/BKE_geometry_fields.hh | |
parent | da41f11a290d9641fed4e73e140fda33a803d391 (diff) |
Geometry Nodes: Add preferred domain to many field inputs
The preferred domain is used to decide which domain the viewer node
should use when set to "Auto" domain. This commit adds it to some curve
input nodes and the curve and mesh topology nodes. This makes debugging
node setups with these nodes a bit faster and less frustrating.
Diffstat (limited to 'source/blender/blenkernel/BKE_geometry_fields.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_geometry_fields.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_geometry_fields.hh b/source/blender/blenkernel/BKE_geometry_fields.hh index 2eef67dba98..7b493ea5ca9 100644 --- a/source/blender/blenkernel/BKE_geometry_fields.hh +++ b/source/blender/blenkernel/BKE_geometry_fields.hh @@ -306,6 +306,7 @@ class CurveLengthFieldInput final : public CurvesFieldInput { IndexMask mask) const final; uint64_t hash() const override; bool is_equal_to(const fn::FieldNode &other) const override; + std::optional<eAttrDomain> preferred_domain(const bke::CurvesGeometry &curves) const final; }; bool try_capture_field_on_geometry(GeometryComponent &component, |