From 46ec1deba579c7b3c073201324d241b498eacb15 Mon Sep 17 00:00:00 2001 From: Kyle Dayton Date: Sun, 24 Jun 2018 20:24:31 -0500 Subject: Add lock rotation feature to spatial editor viewport --- editor/plugins/spatial_editor_plugin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editor/plugins/spatial_editor_plugin.h') 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; -- cgit v1.2.3