55 gz_prop->
type = gz_prop_type;
71 if (prop ==
nullptr) {
91 gz_prop->
type = gz_prop_type;
152 return ((gz_prop->
prop !=
nullptr) ||
161 gz_prop->
custom_func.value_get_fn(gz, gz_prop, &value);
165 if (gz_prop->
index == -1) {
178 gz_prop->
custom_func.value_set_fn(gz, gz_prop, &value);
183 if (gz_prop->
index == -1) {
197 gz_prop->
custom_func.value_get_fn(gz, gz_prop, value);
209 gz_prop->
custom_func.value_set_fn(gz, gz_prop, value);
223 gz_prop->
custom_func.range_get_fn(gz, gz_prop, range);
229 float step, precision;
231 &gz_prop->
ptr, gz_prop->
prop, &range[0], &range[1], &
step, &precision);
264 const uint idname_size = strlen(idname) + 1;
267 memcpy(gz_prop_type->
idname, idname, idname_size);
302 value.
owner = region;
309 value.
owner = region;
323 if (gz_prop->
prop !=
nullptr) {
328 C, scene, &gz_prop->
ptr, gz_prop->
prop, gz_prop->
index, cfra,
false);
330 else if (gz_prop->
custom_func.foreach_rna_prop_fn) {
336 gz_prop->
custom_func.foreach_rna_prop_fn(gz_prop, autokey_fn);
Functions to insert, delete or modify keyframes.
Read Blender memory allocation and freeing.
#define RNA_warning(format,...)
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
bool autokeyframe_property(bContext *C, Scene *scene, PointerRNA *ptr, PropertyRNA *prop, int rnaindex, float cfra, bool only_if_property_keyed)
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_property_float_get_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void WM_gizmo_do_msg_notify_tag_refresh(bContext *, wmMsgSubscribeKey *, wmMsgSubscribeValue *msg_val)
void WM_gizmo_target_property_def_func(wmGizmo *gz, const char *idname, const wmGizmoPropertyFnParams *params)
void WM_gizmo_target_property_float_get_array(const wmGizmo *gz, wmGizmoProperty *gz_prop, float *value)
void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value)
const wmGizmoPropertyType * WM_gizmotype_target_property_find(const wmGizmoType *gzt, const char *idname)
void WM_gizmo_target_property_def_func_ptr(wmGizmo *gz, const wmGizmoPropertyType *gz_prop_type, const wmGizmoPropertyFnParams *params)
void WM_gizmo_target_property_anim_autokey(bContext *C, const wmGizmo *, wmGizmoProperty *gz_prop)
float RNA_property_float_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void RNA_property_float_set_array(PointerRNA *ptr, PropertyRNA *prop, const float *values)
void WM_gizmotype_target_property_def(wmGizmoType *gzt, const char *idname, int data_type, int array_length)
void WM_gizmomap_tag_refresh(wmGizmoMap *gzmap)
void ED_region_tag_redraw(ARegion *region)
void WM_gizmo_target_property_float_set(bContext *C, const wmGizmo *gz, wmGizmoProperty *gz_prop, const float value)
void WM_gizmo_target_property_def_rna(wmGizmo *gz, const char *idname, PointerRNA *ptr, const char *propname, int index)
int BLI_findstringindex(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void WM_gizmo_target_property_float_set_array(bContext *C, const wmGizmo *gz, wmGizmoProperty *gz_prop, const float *value)
void WM_gizmo_target_property_subscribe_all(wmGizmo *gz, wmMsgBus *mbus, ARegion *region)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void WM_gizmo_target_property_clear_rna(wmGizmo *gz, const char *idname)
void WM_gizmo_target_property_clear_rna_ptr(wmGizmo *gz, const wmGizmoPropertyType *gz_prop_type)
void ANIM_deselect_keys_in_animation_editors(bContext *C)
wmGizmoProperty * WM_gizmo_target_property_find(wmGizmo *gz, const char *idname)
bool WM_gizmo_target_property_is_valid(const wmGizmoProperty *gz_prop)
const char * RNA_struct_identifier(const StructRNA *type)
void WM_msg_subscribe_rna(wmMsgBus *mbus, PointerRNA *ptr, const PropertyRNA *prop, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
float RNA_property_float_get(PointerRNA *ptr, PropertyRNA *prop)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Scene * CTX_data_scene(const bContext *C)
void RNA_property_float_ui_range(PointerRNA *ptr, PropertyRNA *prop, float *softmin, float *softmax, float *step, float *precision)
void RNA_property_float_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, float value)
void ED_region_do_msg_notify_tag_redraw(bContext *C, wmMsgSubscribeKey *msg_key, wmMsgSubscribeValue *msg_val)
void WM_gizmo_target_property_def_rna_ptr(wmGizmo *gz, const wmGizmoPropertyType *gz_prop_type, PointerRNA *ptr, PropertyRNA *prop, int index)
bool WM_gizmo_target_property_is_valid_any(const wmGizmo *gz)
int WM_gizmo_target_property_array_length(const wmGizmo *, wmGizmoProperty *gz_prop)
float WM_gizmo_target_property_float_get(const wmGizmo *gz, wmGizmoProperty *gz_prop)
bool WM_gizmo_target_property_float_range_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, float range[2])
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
wmGizmoMap * parent_gzmap
wmGizmoPropertyFnSet value_set_fn
wmGizmoPropertyFnRangeGet range_get_fn
wmGizmoPropertyFnGet value_get_fn
wmGizmoPropertyFnFree free_fn
wmGizmoPropertyFnForeachRNAProp foreach_rna_prop_fn
const wmGizmoPropertyType * type
struct blender::wmGizmoProperty::@216011055122204070127377170176223170047224321165 custom_func
int target_property_defs_len
ListBaseT< wmGizmoPropertyType > target_property_defs
wmGizmoFnPropertyUpdate property_update
wmGizmoGroup * parent_gzgroup
Vector< wmGizmoProperty, 0 > target_properties
Vector< wmGizmoOpElem, 4 > op_data