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