51 lineset->group =
nullptr;
53 if (lineset->linestyle) {
57 lineset->linestyle =
nullptr;
97 new_lineset->
qi = lineset->
qi;
120 module_conf->
script =
nullptr;
127 new_module->
script =
module->script;
155 sizeof(lineset->
name));
180 lineset->
group =
nullptr;
184 else if (lineset_index > 0) {
200 if (lineset->
group) {
228 lineset = lineset->
next,
i++)
243 lineset = lineset->
next,
i++)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
Blender kernel freestyle line style functionality.
FreestyleLineStyle * BKE_linestyle_new(struct Main *bmain, const char *name)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE void BLI_listbase_clear(ListBase *lb)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void void BLI_freelistN(ListBase *listbase) ATTR_NONNULL(1)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void void void bool BLI_listbase_link_move(ListBase *listbase, void *vlink, int step) ATTR_NONNULL()
int BLI_listbase_count(const ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
void BLI_uniquename(const struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
Object groups, one object can be in many groups at once.
@ FREESTYLE_CONTROL_EDITOR_MODE
@ FREESTYLE_FE_SILHOUETTE
@ FREESTYLE_LINESET_ENABLED
@ FREESTYLE_LINESET_CURRENT
@ FREESTYLE_SEL_VISIBILITY
@ FREESTYLE_SEL_EDGE_TYPES
@ FREESTYLE_SEL_IMAGE_BORDER
Read Guarded memory(de)allocation.
static void copy_lineset(FreestyleLineSet *new_lineset, FreestyleLineSet *lineset, const int flag)
FreestyleLineSet * BKE_freestyle_lineset_get_active(FreestyleConfig *config)
bool BKE_freestyle_lineset_delete(FreestyleConfig *config, FreestyleLineSet *lineset)
static void copy_module(FreestyleModuleConfig *new_module, FreestyleModuleConfig *module)
static FreestyleModuleConfig * alloc_module()
void BKE_freestyle_config_init(FreestyleConfig *config)
short BKE_freestyle_lineset_get_active_index(FreestyleConfig *config)
void BKE_freestyle_lineset_set_active_index(FreestyleConfig *config, short index)
bool BKE_freestyle_module_delete(FreestyleConfig *config, FreestyleModuleConfig *module_conf)
bool BKE_freestyle_module_move(FreestyleConfig *config, FreestyleModuleConfig *module_conf, int direction)
FreestyleLineSet * BKE_freestyle_lineset_add(Main *bmain, FreestyleConfig *config, const char *name)
void BKE_freestyle_lineset_unique_name(FreestyleConfig *config, FreestyleLineSet *lineset)
void BKE_freestyle_config_free(FreestyleConfig *config, const bool do_id_user)
void BKE_freestyle_config_copy(FreestyleConfig *new_config, const FreestyleConfig *config, const int flag)
FreestyleModuleConfig * BKE_freestyle_module_add(FreestyleConfig *config)
static FreestyleLineSet * alloc_lineset()
void * MEM_callocN(size_t len, const char *str)
void MEM_freeN(void *vmemh)
static struct PyModuleDef module
struct Collection * group
struct FreestyleLineStyle * linestyle
struct FreestyleLineSet * next