1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Add "Cinematic Preview" to the Spatial Plugin Editor.

This commit is contained in:
Robert Morse
2018-07-26 17:36:05 -05:00
parent 391e46830f
commit 75947b1b72
2 changed files with 84 additions and 2 deletions

View File

@@ -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);