diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-16 20:03:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-16 20:03:32 +0300 |
commit | ddb7cb7e4ab85d323fe23e4879196f4b1a23d4f5 (patch) | |
tree | 6e63540872db2104ecc096139c8e154adde768bc /source/blender/blenkernel/intern/attribute_access.cc | |
parent | 31a0708cb1097be96bf7a8ad2b344b20ac7d2fcd (diff) |
Geometry Nodes: Simplify using OutputAttribute in a vector
Store the optional temporary span storage as a unique_ptr and move
it in the move constructor, to avoid the need to add a special move
constructor that clears the "show_warning" fields from it. Maybe this
is very slightly slower, but we'll need this class less often in the future
anyway.
Diffstat (limited to 'source/blender/blenkernel/intern/attribute_access.cc')
-rw-r--r-- | source/blender/blenkernel/intern/attribute_access.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/attribute_access.cc b/source/blender/blenkernel/intern/attribute_access.cc index cfd3136c765..ee0477faefe 100644 --- a/source/blender/blenkernel/intern/attribute_access.cc +++ b/source/blender/blenkernel/intern/attribute_access.cc @@ -190,7 +190,7 @@ AttributeDomain attribute_domain_highest_priority(Span<AttributeDomain> domains) void OutputAttribute::save() { save_has_been_called_ = true; - if (optional_span_varray_.has_value()) { + if (optional_span_varray_) { optional_span_varray_->save(); } if (save_) { |