1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Merge pull request #19758 from kyledayton/feature/spatial-viewport-lock-rotation

Add lock rotation feature to spatial editor viewport
This commit is contained in:
Rémi Verschelde
2018-07-26 08:31:20 +02:00
committed by GitHub
2 changed files with 32 additions and 1 deletions

View File

@@ -94,7 +94,8 @@ class SpatialEditorViewport : public Control {
VIEW_DISPLAY_NORMAL,
VIEW_DISPLAY_WIREFRAME,
VIEW_DISPLAY_OVERDRAW,
VIEW_DISPLAY_SHADELESS
VIEW_DISPLAY_SHADELESS,
VIEW_LOCK_ROTATION
};
public:
@@ -132,6 +133,7 @@ private:
Camera *camera;
bool transforming;
bool orthogonal;
bool lock_rotation;
float gizmo_scale;
bool freelook_active;