diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-23 13:44:59 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-23 13:44:59 +0300 |
commit | 4cb8438e08cb64d755f627c8eeb3e8cda73864f1 (patch) | |
tree | ba27a73986f9d0477e3c77cc6d88dc165fcafca7 /source/blender/blenkernel/BKE_attribute_access.hh | |
parent | f8e1526fa61b8a79b6514e4f265586732d28280d (diff) |
Geometry Nodes: warn when output attribute has not been saved
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute_access.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_attribute_access.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_attribute_access.hh b/source/blender/blenkernel/BKE_attribute_access.hh index f6a6de04b70..5feae1bf4ca 100644 --- a/source/blender/blenkernel/BKE_attribute_access.hh +++ b/source/blender/blenkernel/BKE_attribute_access.hh @@ -94,6 +94,7 @@ class OutputAttribute { SaveFn save_; std::optional<fn::GVMutableArray_GSpan> optional_span_varray_; bool ignore_old_values_ = false; + bool save_has_been_called_ = false; public: OutputAttribute() = default; @@ -109,6 +110,10 @@ class OutputAttribute { { } + OutputAttribute(OutputAttribute &&other) = default; + + ~OutputAttribute(); + operator bool() const { return varray_.get() != nullptr; |