diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc index dc217e3e18c..0422327a8db 100644 --- a/source/blender/editors/space_outliner/outliner_draw.cc +++ b/source/blender/editors/space_outliner/outliner_draw.cc @@ -43,8 +43,10 @@ #include "BKE_object.hh" #include "BKE_particle.h" #include "BKE_report.hh" +#include "BKE_scene.hh" #include "ANIM_bone_collections.hh" +#include "ANIM_keyframing.hh" #include "DEG_depsgraph.hh" #include "DEG_depsgraph_build.hh" @@ -296,6 +298,8 @@ static void outliner_object_set_flag_recursive_fn(bContext *C, ptr = RNA_pointer_create(&scene->id, &RNA_ObjectBase, base_iter); } RNA_property_boolean_set(&ptr, base_or_object_prop, value); + blender::animrig::autokeyframe_property( + C, scene, &ptr, base_or_object_prop, -1, BKE_scene_frame_get(scene), true); } }