4.2: Bug with Gizmo and Camera.attachControl()

Hi,

I just run into a new issue after the update to Babylon 4.2:
After selecting a Gizmo, the camera events are broken.
This is reproductible into this example:

Any workaround here?

Cheers,
Fabien

pinging @Cedric

No workaround yet, I just saw that today Camera Input stops working after gizmo interaction · Issue #9171 · BabylonJS/Babylon.js · GitHub
@PolygonalSun Did you push something on the camera input recently?

The last changes that I pushed that would affect cameras was 19 days ago:


Those changes were to fix an issue with pointer lock. Do you know if the console is throwing any kind of errors with this issue?

Issue fixed with this PR : fixing camera re-attach after drag by RaananW · Pull Request #9173 · BabylonJS/Babylon.js · GitHub

You’re awesome, thank you very much!

1 Like

I have not really been keeping up with the beta numbers, is this on Beta 12? If so, it did not work.

As an aside to this, I’ve noticed that if you customise how the ArcRotateCamera attaches - for example to make the left mouse click pan instead of rotate, when the controls are reattached after using a gizmo, you end up with left mouse click rotating the camera instead of the original pan function

example: https://playground.babylonjs.com/#8GY6J8#189

1 Like

That’s not the expected behavior :blush:

Want to file an issue? We’ll take care of this as soon as we can

@Cedric, want to give it a quick look ?

@raanan, is it related to your changes on input attachment?

Probably. I’ll have time later to take a look

2 Likes

Seems like the latest changes fixed this. @loadpixels - can you check again and see if it works now?