Skip to content

SelectedHandler not called when switching object selection #120

@Yuci01

Description

@Yuci01

Error description

The "SelectedHandler" is not called every time an object is clicked, but it's only called when no object are selected before clicking on a object.

Step to reproduce

Add a listener function using addSelectedHandler(handler: {handler: ?Function}).
Click on an object in the model (the handler is called).
Click on a different object.

Current result

The handler is not called.

Expected result

The handelr is called every time an object is clicked (every time the selected object changes).

Additional info

When clicking on an empty space inside the model (effectively deselecting the object), the handler will be called again.
Once no object are selected, clicking on a new object will call the handler.

Every time an object is clicked (even when the handler is not called) the following message appears on the console:
Picked Object { <object_details> }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions