Page MenuHome

Curves: Move curves primitive to object add code
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Feb 28 2022, 11:07 PM.

Details

Summary

Currently, any time a Curves data-block is created, the curves_random
function runs, filling it with 500 random curves, also adding a radius.
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.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Feb 28 2022, 11:07 PM
Hans Goudey (HooglyBoogly) created this revision.
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/editors/include/ED_curves.h
29

newline

source/blender/editors/object/object_add.cc
1916

Guess now would be a good time to add the move constructor/assignment?

This revision is now accepted and ready to land.Mar 1 2022, 12:12 PM