Skip to content

OrbitControls.update() does not respect Controls.enabled #32267

@waynemwashuma

Description

@waynemwashuma

Description

This issue came about when i tried to run two camera controls when one is enabled and the other disabled.The disabled camera still operates when controls.update() is called and overrides the other camera controls.

An easy fix is to bail out when disabled on the OrbitControls is updated

Reproduction steps

  1. Create a camera.
  2. Create an orbit control bound to the camera and enable it
  3. Create another orbit control bound to the same camera and enable it
  4. Update the controls each frame ( for this to show, you have to run the enabled camera first then the disabled )

Code

None

Live example

None

Screenshots

No response

Version

r0.181.1

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions