forked from bartvdbraak/blender
fix for [#1473] align camera to view : no IPO update
This commit is contained in:
parent
cc279a3aa0
commit
639ea26638
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user