diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-11-23 02:11:32 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-11-23 02:11:32 +0300 |
commit | c4a71795f59ccbdc0ed7c77158b5bfd78a018fe4 (patch) | |
tree | fe5a5d724f4df91718e8a6b480b1c541274d8a6b /source/blender/editors/space_view3d/view3d_view.c | |
parent | d83b251486346e8a094e1a81c186ca98e2e88d0f (diff) |
Bugfixes:
* Restored Center View to 3D Cursor. For now, I've mapped this to QKEY since all other nice combinations of CKEY have been taken now.
* Fixed bug introduced in commit last night where parenting lattice to armatures with deforms would no longer work.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_view.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 82b5730daa2..eb1712e19a3 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -190,6 +190,7 @@ static void view_settings_from_ob(Object *ob, float *ofs, float *quat, float *di /* ****************** smooth view operator ****************** */ +/* This operator is one of the 'timer refresh' ones like animation playback */ struct SmoothViewStore { float orig_dist, new_dist; @@ -386,6 +387,8 @@ void VIEW3D_OT_smoothview(wmOperatorType *ot) ot->poll= ED_operator_view3d_active; } +/* ****************** change view operators ****************** */ + static void setcameratoview3d(View3D *v3d, RegionView3D *rv3d, Object *ob) { float dvec[3]; @@ -445,6 +448,7 @@ void VIEW3D_OT_setcameratoview(wmOperatorType *ot) ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; } + static int view3d_setobjectascamera_exec(bContext *C, wmOperator *op) { View3D *v3d = CTX_wm_view3d(C); @@ -479,6 +483,7 @@ void VIEW3D_OT_setobjectascamera(wmOperatorType *ot) /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; } + /* ********************************** */ /* create intersection coordinates in view Z direction at mouse coordinates */ |