diff options
| author | Kyle Dayton <kyle@grol.ly> | 2018-06-24 20:24:31 -0500 |
|---|---|---|
| committer | Kyle Dayton <kyle@grol.ly> | 2018-07-25 21:37:04 -0500 |
| commit | 46ec1deba579c7b3c073201324d241b498eacb15 (patch) | |
| tree | 3d32714410ccfcf833bb6afadc208aa3ee588f03 /editor/plugins/spatial_editor_plugin.h | |
| parent | 25275de50e31aa081cdefe0c8b3b76b6389cb6a6 (diff) | |
| download | redot-engine-46ec1deba579c7b3c073201324d241b498eacb15.tar.gz | |
Add lock rotation feature to spatial editor viewport
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index 637926a913..ed95a9a602 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -93,7 +93,8 @@ class SpatialEditorViewport : public Control { VIEW_DISPLAY_NORMAL, VIEW_DISPLAY_WIREFRAME, VIEW_DISPLAY_OVERDRAW, - VIEW_DISPLAY_SHADELESS + VIEW_DISPLAY_SHADELESS, + VIEW_LOCK_ROTATION }; public: @@ -131,6 +132,7 @@ private: Camera *camera; bool transforming; bool orthogonal; + bool lock_rotation; float gizmo_scale; bool freelook_active; |
