Merge pull request #78017 from Sauermann/fix-physics-passive-hovering

Fix passive mouse hovering for physics
This commit is contained in:
Rémi Verschelde
2023-06-09 13:44:05 +02:00
2 changed files with 24 additions and 75 deletions

View File

@ -256,16 +256,6 @@ private:
Transform3D physics_last_object_transform;
Transform3D physics_last_camera_transform;
ObjectID physics_last_id;
bool physics_has_last_mousepos = false;
Vector2 physics_last_mousepos = Vector2(INFINITY, INFINITY);
struct {
bool alt = false;
bool control = false;
bool shift = false;
bool meta = false;
BitField<MouseButtonMask> mouse_mask;
} physics_last_mouse_state;
bool handle_input_locally = true;
bool local_input_handled = false;