26 #include "RNA_prototypes.h"
43 strcpy(name,
TIP_(
"<invalid>"));
46 strcpy(name,
TIP_(
"<no path>"));
61 const char *structname =
NULL, *propname =
NULL;
63 const char *arrayname =
NULL;
64 short free_structname = 0;
88 char pchanName[256], constName[256];
93 structname =
BLI_sprintfN(
"%s : %s", pchanName, constName);
114 fcu->
rna_path,
"sequence_editor.sequences_all[", stripname,
sizeof(stripname))) {
115 if (strstr(fcu->
rna_path,
".transform.") || strstr(fcu->
rna_path,
".crop.") ||
116 strstr(fcu->
rna_path,
".modifiers[")) {
117 const char *structname_all =
BLI_sprintfN(
"%s : %s", stripname, structname);
118 if (free_structname) {
121 structname = structname_all;
134 const char *structname_all =
BLI_sprintfN(
"%s : %s", nodename, structname);
135 if (free_structname) {
138 structname = structname_all;
159 arrayname = &arrayindbuf[0];
170 BLI_snprintf(name, 256,
"%s%s (%s)", arrayname, propname, structname);
177 if (free_structname) {
210 #define HSV_BANDWIDTH 0.3f
225 grouping = (4 - (tot % 2));
233 fac = ((
float)cur / (
float)tot) * 0.7f;
238 hsv[0] = fmod(hsv[0], 1.0f);
242 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
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxlen)
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)
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
bool RNA_property_array_check(PropertyRNA *prop)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
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)
const char * RNA_property_ui_name(const PropertyRNA *prop)
bool RNA_path_resolve_property(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)