summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorKyle Dayton <kyle@grol.ly>2018-06-24 20:24:31 -0500
committerKyle Dayton <kyle@grol.ly>2018-07-25 21:37:04 -0500
commit46ec1deba579c7b3c073201324d241b498eacb15 (patch)
tree3d32714410ccfcf833bb6afadc208aa3ee588f03 /editor/plugins/spatial_editor_plugin.h
parent25275de50e31aa081cdefe0c8b3b76b6389cb6a6 (diff)
downloadredot-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.h4
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;