Trigger auto perspective on 3D mouse rotation (#14768)

This commit is contained in:
Noisyfox
2026-07-15 15:06:17 +08:00
committed by GitHub
parent 1889ffb22a
commit 691fd5892d

View File

@@ -353,6 +353,7 @@ bool Mouse3DController::State::apply(const Mouse3DController::Params &params, Ca
rot = Vec3d(rot.x(), -rot.z(), rot.y());
rot = Vec3d(rot.x() * pitchmult, rot.y() * yawmult, rot.z() * rollmult);
camera.rotate_local_around_target(Vec3d(rot.x(), - rot.z(), rot.y()));
camera.auto_type(Camera::EType::Perspective);
} else {
assert(input_queue_item.is_buttons());
switch (input_queue_item.type_or_buttons) {