37 config->
modules.clear_no_delete();
53 lineset.
group =
nullptr;
63 config->
modules.free_no_destruct();
79 new_config->
linesets.clear_no_delete();
86 new_config->
modules.clear_no_delete();
99 new_lineset->
qi = lineset->
qi;
115 return MEM_new<FreestyleModuleConfig>(
"style module configuration");
122 module_conf->
script =
nullptr;
129 new_module->
script =
module->script;
157 sizeof(lineset->
name));
162 return MEM_new<FreestyleLineSet>(
"Freestyle line set");
167 int lineset_index = config->
linesets.count();
182 lineset->
group =
nullptr;
186 else if (lineset_index > 0) {
202 if (lineset->
group) {
229 for (lineset = config->
linesets.first(), i = 0; lineset; lineset = lineset->
next, i++) {
242 for (lineset = config->
linesets.first(), i = 0; lineset; lineset = lineset->
next, i++) {
Blender kernel freestyle line style functionality.
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
Object groups, one object can be in many groups at once.
Read Blender memory allocation and freeing.
@ FREESTYLE_SEL_IMAGE_BORDER
@ FREESTYLE_SEL_EDGE_TYPES
@ FREESTYLE_SEL_VISIBILITY
void BKE_freestyle_config_init(struct FreestyleConfig *config)
static void copy_module(FreestyleModuleConfig *new_module, FreestyleModuleConfig *module)
void BKE_freestyle_lineset_unique_name(struct FreestyleConfig *config, struct FreestyleLineSet *lineset)
short BKE_freestyle_lineset_get_active_index(struct FreestyleConfig *config)
struct FreestyleLineSet * BKE_freestyle_lineset_add(struct Main *bmain, struct FreestyleConfig *config, const char *name)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool BKE_freestyle_module_move(struct FreestyleConfig *config, struct FreestyleModuleConfig *module_conf, int direction)
struct FreestyleLineSet * BKE_freestyle_lineset_get_active(struct FreestyleConfig *config)
bool BKE_freestyle_module_delete(struct FreestyleConfig *config, struct FreestyleModuleConfig *module_conf)
bool BKE_freestyle_lineset_delete(struct FreestyleConfig *config, struct FreestyleLineSet *lineset)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_freestyle_config_free(struct FreestyleConfig *config, bool do_id_user)
FreestyleLineStyle * BKE_linestyle_new(struct Main *bmain, const char *name)
@ FREESTYLE_LINESET_CURRENT
@ FREESTYLE_LINESET_ENABLED
void BKE_freestyle_config_copy(struct FreestyleConfig *new_config, const struct FreestyleConfig *config, int flag)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static FreestyleModuleConfig * alloc_module()
struct FreestyleModuleConfig * BKE_freestyle_module_add(struct FreestyleConfig *config)
void BKE_freestyle_lineset_set_active_index(struct FreestyleConfig *config, short index)
eFreestyleLineSet_EdgeTypes
@ FREESTYLE_FE_SILHOUETTE
static FreestyleLineSet * alloc_lineset()
static void copy_lineset(FreestyleLineSet *new_lineset, FreestyleLineSet *lineset, const int flag)
void void void bool BLI_listbase_link_move(ListBase *listbase, void *vlink, int step) ATTR_NONNULL()
@ FREESTYLE_CONTROL_EDITOR_MODE
ListBaseT< FreestyleModuleConfig > modules
eFreestyleControl_Mode mode
eFreestyleConfig_Flags flags
ListBaseT< FreestyleLineSet > linesets
eFreestyleLineSet_EdgeTypes exclude_edge_types
eFreestyleLineSet_Selection selection
struct FreestyleLineStyle * linestyle
struct FreestyleLineSet * next
eFreestyleLineSet_EdgeTypes edge_types
struct Collection * group
eFreestyleLineSet_Flags flags