Bastien Montagne
780bb88a7a
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
2015-01-03 12:05:23 +01:00
..
2015-01-01 23:42:28 +11:00
2014-11-28 22:16:14 +01:00
2014-12-01 17:11:55 +01:00
2014-10-23 16:33:28 +02:00
2014-11-30 19:28:59 +01:00
2014-12-08 16:46:42 +01:00
2014-11-29 19:12:33 +01:00
2014-12-01 17:11:55 +01:00
2013-12-08 17:29:22 +11:00
2014-11-16 13:57:58 +01:00
2014-08-06 02:48:37 +10:00
2014-12-31 13:11:54 +01:00
2014-12-27 16:36:31 +11:00
2015-01-03 12:05:23 +01:00
2014-12-10 11:16:42 +01:00
2014-12-10 11:16:42 +01:00
2015-01-01 23:42:28 +11:00
2014-11-11 18:16:20 +01:00
2014-11-11 18:05:00 +01:00
2014-11-28 22:16:14 +01:00
2014-12-01 17:11:55 +01:00
2014-12-01 01:52:06 +13:00
2014-09-04 17:53:10 +10:00
2014-10-31 16:17:02 +01:00
2014-12-01 17:11:55 +01:00
2014-11-16 13:57:58 +01:00
2014-12-10 13:57:16 +01:00
2014-12-09 17:21:02 +05:00
2014-11-28 22:16:14 +01:00
2014-12-01 17:11:55 +01:00
2015-01-02 14:28:58 +05:00
2014-07-30 16:50:28 +10:00
2014-05-01 04:47:51 +10:00
2014-09-24 14:55:02 +10:00
2014-12-01 17:11:55 +01:00
2014-04-28 03:05:37 +10:00
2014-12-01 17:11:55 +01:00
2014-09-10 23:12:11 +10:00
2014-11-16 13:57:58 +01:00
2014-12-01 01:52:06 +13:00
2014-05-01 04:47:51 +10:00
2014-07-21 12:02:05 +02:00
2014-12-14 18:24:13 +01:00
2014-02-24 22:26:47 +11:00
2015-01-01 23:42:28 +11:00
2014-11-11 18:08:15 +01:00
2014-11-16 13:57:58 +01:00
2014-11-17 11:19:54 +01:00
2014-11-28 22:16:14 +01:00
2014-12-01 17:11:55 +01:00
2014-06-06 16:07:58 +06:00
2014-09-22 13:23:42 +10:00
2014-11-28 22:16:14 +01:00
2014-11-28 22:16:14 +01:00
2014-11-16 13:57:58 +01:00
2014-11-28 22:16:14 +01:00
2014-12-26 20:06:56 +01:00
2014-12-01 17:11:55 +01:00
2014-08-13 14:55:45 +10:00
2014-10-13 14:03:39 +02:00
2014-11-21 14:16:35 +01:00
2014-09-01 21:01:11 +10:00
2014-11-28 22:16:14 +01:00
2014-06-05 18:37:53 +10:00
2015-01-01 23:42:28 +11:00
2014-11-01 16:36:11 +01:00
2014-06-25 04:22:14 +10:00
2015-01-01 23:42:28 +11:00
2014-12-01 17:11:55 +01:00
2014-11-18 23:52:29 +01:00
2014-11-16 13:57:58 +01:00
2014-12-29 15:26:38 +01:00
2014-05-01 04:47:51 +10:00
2014-05-28 23:21:39 +06:00
2015-01-02 19:29:00 +11:00
2014-11-11 18:16:20 +01:00
2015-01-01 23:42:28 +11:00
2014-10-11 17:57:46 +02:00
2014-04-17 19:03:08 +03:00
2014-12-01 17:11:55 +01:00
2014-12-19 13:34:50 +01:00
2014-07-20 01:33:40 +10:00
2014-11-28 22:16:14 +01:00
2014-07-14 18:30:27 -07:00
2014-12-01 17:11:55 +01:00
2014-09-02 21:20:31 +10:00
2015-01-01 23:42:28 +11:00
2014-09-24 14:55:02 +10:00
2014-04-27 00:25:15 +10:00
2015-01-01 14:52:37 +05:00
2014-11-28 22:16:14 +01:00
2014-02-08 06:24:05 +11:00
2014-12-01 17:11:55 +01:00
2014-11-16 14:23:37 +01:00
2014-11-24 18:23:44 +01:00
2014-04-01 15:22:28 +11:00
2014-12-10 11:16:42 +01:00
2014-01-16 19:15:53 +11:00
2014-12-01 17:11:55 +01:00
2014-12-26 23:51:27 +01:00
2014-12-15 14:39:59 +05:00
2014-11-28 22:16:14 +01:00
2014-01-01 22:45:59 +06:00
2014-12-02 10:30:29 +01:00
2014-12-04 20:02:05 +05:00
2014-07-21 18:57:35 +10:00
2014-11-01 23:32:02 +01:00
2014-11-18 15:29:32 +01:00
2014-09-25 06:16:37 +10:00
2014-08-26 20:53:41 +10:00
2014-12-11 14:43:15 +01:00
2014-11-28 22:16:14 +01:00
2014-12-24 18:54:38 +05:00
2014-04-01 15:22:28 +11:00