65 strcpy(name,
TIP_(
"<invalid>"));
68 strcpy(name,
TIP_(
"<no path>"));
83 const char *structname =
NULL, *propname =
NULL;
85 const char *arrayname =
NULL;
86 short free_structname = 0;
109 if (strstr(fcu->
rna_path,
"bones") && strstr(fcu->
rna_path,
"constraints")) {
116 "%s : %s", pchanName ? pchanName :
"", constName ? constName :
"");
154 arrayname = &arrayindbuf[0];
165 BLI_snprintf(name, 256,
"%s%s (%s)", arrayname, propname, structname);
172 if (free_structname) {
205 #define HSV_BANDWIDTH 0.3f
220 grouping = (4 - (tot % 2));
228 fac = ((
float)cur / (
float)tot) * 0.7f;
233 hsv[0] = fmod(hsv[0], 1.0f);
237 hsv[1] = ((hsv[0] > 0.5f) && (hsv[0] < 0.8f)) ? 0.5f : 0.6f;
typedef float(TangentPoint)[2]
void hsv_to_rgb_v(const float hsv[3], float r_rgb[3])
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_str_quoted_substrN(const char *__restrict str, const char *__restrict prefix) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
Read Guarded memory(de)allocation.
void getcolor_fcurve_rainbow(int cur, int tot, float out[3])
int getname_anim_fcurve(char *name, ID *id, FCurve *fcu)
void(* MEM_freeN)(void *vmemh)
bool RNA_property_array_check(PropertyRNA *prop)
void RNA_id_pointer_create(ID *id, PointerRNA *r_ptr)
const char * RNA_struct_ui_name(const StructRNA *type)
char RNA_property_array_item_char(PropertyRNA *prop, int index)
char * RNA_property_string_get_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
int RNA_struct_ui_icon(const StructRNA *type)
PropertyRNA * RNA_struct_name_property(const StructRNA *type)
bool RNA_path_resolve_property(PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
const char * RNA_property_ui_name(const PropertyRNA *prop)