Blender Git Loki

Git Commits -> Revision 780bb88

Revision 780bb88 by Bastien Montagne (master)
January 3, 2015, 11:05 (GMT)
Refactor 'fit in camera view' code, and expose it to RNA.

This changes BKE's fitting code to use `BKE_camera_params_compute_viewplane` instead of
`BKE_camera_view_frame`. This allows that code to work with orthographic projection too.

Also, two funcs were added to rna's Object, to resp. get the projection matrix of that
object (mostly useful for cameras and lamps objects), and return position this object
should be to see all (to fit) a given set of points.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D961

Commit Details:

Full Hash: 780bb88a7a5b30eaf8a62b999a30ac7bb4153ebf
Parent Commit: 16ed20f
Lines Changed: +268, -73

7 Modified Paths:

/source/blender/blenkernel/BKE_camera.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/camera.c (+151, -62) (Diff)
/source/blender/blenlib/BLI_math_geom.h (+3, -0) (Diff)
/source/blender/blenlib/intern/math_geom.c (+53, -0) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+6, -10) (Diff)
/source/blender/makesrna/intern/rna_object.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_object_api.c (+51, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021