diff options
author | Robert Morse <robertmorse107@gmail.com> | 2018-07-26 17:36:05 -0500 |
---|---|---|
committer | Robert Morse <robertmorse107@gmail.com> | 2018-07-26 19:15:28 -0500 |
commit | 75947b1b721c737bfaa9af108456e9a6ebc186c9 (patch) | |
tree | c0d5c5126ad911634f8f6c4ef26d2b86df128286 /editor/plugins/spatial_editor_plugin.h | |
parent | 391e46830f4f08ddfc9104fc9182d6944f609635 (diff) |
Add "Cinematic Preview" to the Spatial Plugin Editor.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index c89db1867b..bf3c0fd831 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -95,7 +95,8 @@ class SpatialEditorViewport : public Control { VIEW_DISPLAY_WIREFRAME, VIEW_DISPLAY_OVERDRAW, VIEW_DISPLAY_SHADELESS, - VIEW_LOCK_ROTATION + VIEW_LOCK_ROTATION, + VIEW_CINEMATIC_PREVIEW }; public: @@ -141,6 +142,7 @@ private: Label *info_label; Label *fps_label; + Label *cinema_label; struct _RayResult { @@ -289,8 +291,11 @@ private: Camera *previewing; Camera *preview; + bool previewing_cinema; + void _preview_exited_scene(); void _toggle_camera_preview(bool); + void _toggle_cinema_preview(bool); void _init_gizmo_instance(int p_idx); void _finish_gizmo_instances(); void _selection_result_pressed(int); |