void sk_removeStroke(SK_Sketch *sketch, SK_Stroke *stk) { if (sketch->active_stroke == stk) { sketch->active_stroke = NULL; } BLI_remlink(&sketch->strokes, stk); sk_freeStroke(stk); }
void freeSketch(SK_Sketch *sketch) { SK_Stroke *stk, *next; for (stk = sketch->strokes.first; stk; stk = next) { next = stk->next; sk_freeStroke(stk); } MEM_freeN(sketch); }
void freeSketch(SK_Sketch *sketch) { SK_Stroke *stk, *next; for (stk = sketch->strokes.first; stk; stk = next) { next = stk->next; sk_freeStroke(stk); } BLI_freelistN(&sketch->depth_peels); MEM_freeN(sketch); }