Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_object.c
| Show First 20 Lines • Show All 878 Lines • ▼ Show 20 Lines | for (int i = 0; i < tc->data_len; i++, td++) { | ||||
| /* if animtimer is running, and the object already has animation data, | /* if animtimer is running, and the object already has animation data, | ||||
| * check if the auto-record feature means that we should record 'samples' | * check if the auto-record feature means that we should record 'samples' | ||||
| * (i.e. uneditable animation values) | * (i.e. uneditable animation values) | ||||
| */ | */ | ||||
| /* TODO: autokeyframe calls need some setting to specify to add samples | /* TODO: autokeyframe calls need some setting to specify to add samples | ||||
| * (FPoints) instead of keyframes? */ | * (FPoints) instead of keyframes? */ | ||||
| if ((t->animtimer) && IS_AUTOKEY_ON(t->scene)) { | if ((t->animtimer) && IS_AUTOKEY_ON(t->scene)) { | ||||
| animrecord_check_state(t, ob); | animrecord_check_state(t, &ob->id); | ||||
| autokeyframe_object(t->context, t->scene, t->view_layer, ob, t->mode); | autokeyframe_object(t->context, t->scene, t->view_layer, ob, t->mode); | ||||
| } | } | ||||
| motionpath_update |= motionpath_need_update_object(t->scene, ob); | motionpath_update |= motionpath_need_update_object(t->scene, ob); | ||||
| /* sets recalc flags fully, instead of flushing existing ones | /* sets recalc flags fully, instead of flushing existing ones | ||||
| * otherwise proxies don't function correctly | * otherwise proxies don't function correctly | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||