From 44fa749bbe4d8a93ed1bf697c26a6cf50daad6bc Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Sat, 21 Oct 2023 16:27:00 +0200 Subject: [PATCH] Cleanup: Improve comment about CurvesGeometry::resize() Make it clearer that attributes must be initialized by the caller. Pull Request: https://projects.blender.org/blender/blender/pulls/114004 --- source/blender/blenkernel/BKE_curves.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh index 8e3a10083e2..ac2137c9f72 100644 --- a/source/blender/blenkernel/BKE_curves.hh +++ b/source/blender/blenkernel/BKE_curves.hh @@ -344,8 +344,10 @@ class CurvesGeometry : public ::CurvesGeometry { public: /** - * Change the number of elements. New values for existing attributes should be properly - * initialized afterwards. + * Change the number of curves and/or points. + * + * \warning To avoid redundant writes, newly created attribute values are not initialized. + * They must be initialized by the caller afterwards. */ void resize(int points_num, int curves_num);