1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Add lock rotation feature to spatial editor viewport

This commit is contained in:
Kyle Dayton
2018-06-24 20:24:31 -05:00
parent 25275de50e
commit 46ec1deba5
2 changed files with 32 additions and 1 deletions

View File

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