diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-25 07:02:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-25 07:02:26 +0400 |
commit | bdbf0abe600b6e2608d93b6c27ec7ff9d474b743 (patch) | |
tree | d95d8accd8e252dc964a2937203b43ffd55343d0 /source/blender/editors/include/ED_view3d.h | |
parent | 262eec84cd8911dcdae2fe9415a94f68a039282b (diff) |
rna api
- allow RegionView3D.view_matrix to be set.
- RegionView3D.view_rotation was inverted.
- add C function view3d_settings_from_mat()
note, intentionally removed NULL checks, double checked this is ok with callers.
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index a3e99e6358e..6729295e07d 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -183,5 +183,11 @@ int ED_view3d_lock(struct RegionView3D *rv3d); unsigned int ED_view3d_datamask(struct Scene *scene, struct View3D *v3d); unsigned int ED_viewedit_datamask(struct bScreen *screen); + +/* assigning view matrix */ +void view3d_settings_from_mat(float mat[][4], float *ofs, float *quat, float *dist); +void view3d_settings_from_ob(struct Object *ob, float *ofs, float *quat, float *dist, float *lens); +int view3d_is_ortho(struct View3D *v3d, struct RegionView3D *rv3d); + #endif /* ED_VIEW3D_H */ |