summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-07-27 08:12:22 +0200
committerGitHub <noreply@github.com>2018-07-27 08:12:22 +0200
commitb5b8f52d4f96e019ed85174e117b766dcb703083 (patch)
tree02f3af284e2cf919c9d60511f1bf5a9bc712f2e7 /editor/plugins/spatial_editor_plugin.h
parent274d1bc683bbd7f31b323f217bbe4512a8c275a1 (diff)
parent75947b1b721c737bfaa9af108456e9a6ebc186c9 (diff)
downloadredot-engine-b5b8f52d4f96e019ed85174e117b766dcb703083.tar.gz
Merge pull request #15310 from remorse107/Cinema-Mode
Added "Cinema Mode" so that the spatial editor can actively track the...
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r--editor/plugins/spatial_editor_plugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index ac08aa2f4c..bd449a28df 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:
@@ -140,6 +141,7 @@ private:
Label *info_label;
Label *fps_label;
+ Label *cinema_label;
struct _RayResult {
@@ -288,8 +290,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);