Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c
| Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Lines | |||||
| void WM_gizmo_target_property_anim_autokey(bContext *C, | void WM_gizmo_target_property_anim_autokey(bContext *C, | ||||
| const wmGizmo *UNUSED(gz), | const wmGizmo *UNUSED(gz), | ||||
| wmGizmoProperty *gz_prop) | wmGizmoProperty *gz_prop) | ||||
| { | { | ||||
| if (gz_prop->prop != NULL) { | if (gz_prop->prop != NULL) { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| const float cfra = (float)CFRA; | const float cfra = (float)CFRA; | ||||
| const int index = gz_prop->index == -1 ? 0 : gz_prop->index; | const int index = gz_prop->index == -1 ? 0 : gz_prop->index; | ||||
| ED_autokeyframe_property(C, scene, &gz_prop->ptr, gz_prop->prop, index, cfra); | ED_autokeyframe_property(C, scene, &gz_prop->ptr, gz_prop->prop, index, cfra, false); | ||||
| } | } | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||