diff options
author | Jacques Lucke <jacques@blender.org> | 2022-07-21 13:47:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-07-21 13:47:44 +0300 |
commit | 2034e8c42dd9c09952196fb12a82adde696ac05d (patch) | |
tree | 113602b674448c21c92c7687e9695979ecc75913 /source/blender/blenlib | |
parent | 538da79c6d17a6e660a9484c280220240b306282 (diff) |
Geometry Nodes: add debug check for whether AttributeWriter.finish is called
Calling `finish` after writing to generic attributes is currently necessary for
correctness. Previously, this was easy to forget. Now there is a check for this
in debug builds.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/generic_virtual_array.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/generic_virtual_array.cc b/source/blender/blenlib/intern/generic_virtual_array.cc index 1e548d006b2..f66b1e14fc6 100644 --- a/source/blender/blenlib/intern/generic_virtual_array.cc +++ b/source/blender/blenlib/intern/generic_virtual_array.cc @@ -404,7 +404,7 @@ GMutableVArraySpan::~GMutableVArraySpan() if (varray_) { if (show_not_saved_warning_) { if (!save_has_been_called_) { - std::cout << "Warning: Call `apply()` to make sure that changes persist in all cases.\n"; + std::cout << "Warning: Call `save()` to make sure that changes persist in all cases.\n"; } } } |