GPv3 and Curves API Familiarization Notes{read_more}// A typical operator exec call...
static int grease_pencil_do_whatever(bContext *C, wmOperator * /*op*/)
{
const Scene *scene = CTX_data_scene(C);
Object *object = CTX_data_active_object(C);
GreasePencil &grease;_pencil = *static_cast(object->data);
// How to get "drawings" to edit under GPv3 and iterate over each "drawing":
const Arraydrawings = retrieve_editable_drawings(*scene, grease_pencil);
threading::parallel_for_each(drawings, [&](const MutableDrawingInfo &info;) {
IndexMaskMemory memory;
const IndexMask stro
...
继续阅读
(110)