diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-01 19:40:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-01 19:40:25 +0300 |
commit | f98d74c80de7b1cae1e5a963f33c51c49f478ba1 (patch) | |
tree | 5144a2249410c0128d7e2780cb39e56aa5181ab2 /source/blender/editors/include | |
parent | 143bc9f8d4baf2a7312f3e836a464f74148c4a3b (diff) |
Curves: Move curves primitive to object add code
Currently, any time a Curves data-block is created, the `curves_random`
function runs, filling it with 500 random curves, also adding a radius
attribute. This is just left over from the prototype in the initial
commit that added the type.
This commit moves the code that creates the random data to the curve
editors module, like the other primitives are organized.
Differential Revision: https://developer.blender.org/D14211
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_curves.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_curves.h b/source/blender/editors/include/ED_curves.h index 7316b045646..706563061d4 100644 --- a/source/blender/editors/include/ED_curves.h +++ b/source/blender/editors/include/ED_curves.h @@ -15,3 +15,14 @@ void ED_operatortypes_curves(void); #ifdef __cplusplus } #endif + +#ifdef __cplusplus + +# include "BKE_curves.hh" + +namespace blender::ed::curves { + +bke::CurvesGeometry primitive_random_sphere(int curves_size, int points_per_curve); + +} +#endif
\ No newline at end of file |