You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user