95 new_lineset->
qi = lineset->
qi;
101 strcpy(new_lineset->
name, lineset->
name);
112 "style module configuration");
154 sizeof(lineset->
name));
185 else if (lineset_index > 0) {
186 sprintf(lineset->
name,
"LineSet %i", lineset_index + 1);
189 strcpy(lineset->
name,
"LineSet");
201 if (lineset->
group) {
231 lineset = lineset->
next, i++) {
245 lineset = lineset->
next, i++) {
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void id_us_min(struct ID *id)
void id_us_plus(struct ID *id)
Blender kernel freestyle line style functionality.
FreestyleLineStyle * BKE_linestyle_new(struct Main *bmain, const char *name)
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)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
bool BLI_uniquename(struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_len)
Object groups, one object can be in many groups at once.
@ FREESTYLE_FE_SILHOUETTE
@ FREESTYLE_SEL_VISIBILITY
@ FREESTYLE_SEL_EDGE_TYPES
@ FREESTYLE_SEL_IMAGE_BORDER
@ FREESTYLE_LINESET_ENABLED
@ FREESTYLE_LINESET_CURRENT
@ FREESTYLE_CONTROL_EDITOR_MODE
Read Guarded memory(de)allocation.
static FreestyleLineSet * alloc_lineset(void)
static void copy_lineset(FreestyleLineSet *new_lineset, FreestyleLineSet *lineset, const int flag)
bool BKE_freestyle_lineset_delete(FreestyleConfig *config, FreestyleLineSet *lineset)
static void copy_module(FreestyleModuleConfig *new_module, FreestyleModuleConfig *module)
FreestyleLineSet * BKE_freestyle_lineset_add(struct Main *bmain, FreestyleConfig *config, const char *name)
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)
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)
FreestyleLineSet * BKE_freestyle_lineset_get_active(FreestyleConfig *config)
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