cameraViewport tiny bug

There is a minor bug in cameraViewport extension causing right mouse button menu to popup when it shouldn’t. More specifically, it appears when user is finishing navigation with right mouse button in viewport - dragging the mouse towards left or bottom. Based on this behavior I have changed the line 313 (to use absolute values) in CameraExt:

# flag that the camera was moved a little
if abs(deltaU) > 0.001 or abs(deltaV) > 0.001:
    self.didCameraMove = True;

This way popup doesn’t appear when navigating the viewport. :slightly_smiling_face:

2 Likes

Thanks for the fix. The updated version will be included in the next release.

Great, thanks :slight_smile:

May I ask if there is some recommended procedure for updating cameraViewport component with new TD releases? Or is it best just to delete the old one and replace it with new component?

yeah, the best way for now is just to delete the old camera and replace it with the new tox. Eventually we do want to automate that to make it a little easier, but I don’t have a timeline on that right now.

All right, thank you very much for info :slightly_smiling_face: