48 const float *range =
static_cast<const float *
>(t->
custom.mode.data);
49 float minx = range[0];
50 float maxx = range[1];
54 val = 2.0f * (cval - sval) / (maxx - minx);
55 CLAMP(val, -1.0f, 1.0f);
66 const float *range =
static_cast<const float *
>(t->
custom.mode.data);
67 float minx = range[0];
68 float maxx = range[1];
80 for (i = 0; i < tc->data_len; i++, td++) {
87 if ((sval > minx) && (sval < maxx)) {
88 float cvalc = std::clamp(cval, minx, maxx);
115 timefac = (sval - ival) / (sval - minx);
116 *dst = cvalc - timefac * (cvalc - minx);
119 timefac = (ival - sval) / (maxx - sval);
120 *dst = cvalc + timefac * (maxx - cvalc);
135 float cval[2], sval[2];
136 const float *range =
static_cast<const float *
>(t->
custom.mode.data);
137 float minx = range[0];
138 float maxx = range[1];
151 t->
vec[0] = 2.0f * (cval[0] - sval[0]) / (maxx - minx);
184 t->
custom.mode.use_free =
true;
186 float min = 999999999.0f,
max = -999999999.0f;
190 for (i = 0; i < tc->data_len; i++, td++) {
192 float val = *(td->
val);
206 min =
float(scene->playback_start());
Read Blender memory allocation and freeing.
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
size_t size_t size_t BLI_snprintf_utf8(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
float BKE_nla_tweakedit_remap(AnimData *adt, float cframe, eNlaTime_ConvertModes mode)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
bool hasNumInput(const NumInput *n)
void ED_area_status_text(ScrArea *area, const char *str)
bool applyNumInput(NumInput *n, float *vec)
MINLINE void copy_v3_fl(float r[3], float f)
void outputNumInput(NumInput *n, char *str, const UnitSettings &unit_settings)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< SpaceLink > spacedata