50 lineset->group =
nullptr;
52 if (lineset->linestyle) {
56 lineset->linestyle =
nullptr;
96 new_lineset->
qi = lineset->
qi;
113 "style module configuration");
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++)
249 lineset->
flags &= ~FREESTYLE_LINESET_CURRENT;
@ LIB_ID_CREATE_NO_USER_REFCOUNT
Blender kernel freestyle line style functionality.
FreestyleLineStyle * BKE_linestyle_new(struct Main *bmain, const char *name)
#define LISTBASE_FOREACH(type, var, list)
void BLI_freelinkN(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void void BLI_freelistN(struct ListBase *listbase) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_remlink(struct 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_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define STRNCPY(dst, src)
#define SNPRINTF(dst, format,...)
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_LINESET_ENABLED
@ FREESTYLE_LINESET_CURRENT
@ FREESTYLE_FE_SILHOUETTE
@ FREESTYLE_SEL_VISIBILITY
@ FREESTYLE_SEL_EDGE_TYPES
@ FREESTYLE_SEL_IMAGE_BORDER
Read Guarded memory(de)allocation.
static FreestyleLineSet * alloc_lineset(void)
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)
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)
static FreestyleModuleConfig * alloc_module(void)
FreestyleModuleConfig * BKE_freestyle_module_add(FreestyleConfig *config)
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
static struct PyModuleDef module
struct Collection * group
struct FreestyleLineStyle * linestyle
struct FreestyleLineSet * next