Add ability to cancel rotation from viewport rotation gizmo
This commit is contained in:
@@ -85,6 +85,7 @@ class ViewportRotationControl : public Control {
|
||||
Vector2i orbiting_mouse_start;
|
||||
int orbiting_index = -1;
|
||||
int focused_axis = -2;
|
||||
bool gizmo_activated = false;
|
||||
|
||||
const float AXIS_CIRCLE_RADIUS = 8.0f * EDSCALE;
|
||||
|
||||
@@ -413,6 +414,7 @@ private:
|
||||
// so one cursor is the real cursor, while the other can be an interpolated version.
|
||||
Cursor cursor; // Immediate cursor
|
||||
Cursor camera_cursor; // That one may be interpolated (don't modify this one except for smoothing purposes)
|
||||
Cursor previous_cursor; // Storing previous cursor state for canceling purposes
|
||||
|
||||
void scale_fov(real_t p_fov_offset);
|
||||
void reset_fov();
|
||||
|
||||
Reference in New Issue
Block a user