diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index a71be6bc425..5b6af61949f 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -106,7 +106,7 @@ #include "mydevice.h" -#include "BIF_poseobject.h" +#include "transform.h" #define VIEW_ZOOM_OUT_FACTOR (1.15f) #define VIEW_ZOOM_IN_FACTOR (1.0f/VIEW_ZOOM_OUT_FACTOR) @@ -322,6 +322,7 @@ void persptoetsen(unsigned short event) if(((G.qual & LR_CTRLKEY) && (G.qual & LR_ALTKEY)) || (G.qual & LR_SHIFTKEY)) { void setcameratoview3d(void); // view.c setcameratoview3d(); + autokeyframe_ob_cb_func(G.scene->camera, TFM_TRANSLATION|TFM_ROTATION); DAG_object_flush_update(G.scene, G.scene->camera, OB_RECALC_OB); BIF_undo_push("View to Camera position"); allqueue(REDRAWVIEW3D, 0);