Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using obj.selected programatically the bbox is not shown #190

Closed
jscastro76 opened this issue Jan 27, 2021 · 0 comments
Closed

When using obj.selected programatically the bbox is not shown #190

jscastro76 opened this issue Jan 27, 2021 · 0 comments
Assignees
Labels
🪲 bug Something isn't working
Milestone

Comments

@jscastro76
Copy link
Owner

Describe the bug
The bbox is only drawn if the object is being "overed" with the mouse, so when an object is selected by code directly without any mouse interaction, the bbox is not created.

To Reproduce
Steps to reproduce the behavior:

tb.loadObj(options, function (model) {
	truck = model.setCoords(mapConfig.truck.origin);
	tb.add(truck);
	truck.selected = true; // this is not showing the bbox
});
  • [Version [e.g. 2.1.7]
@jscastro76 jscastro76 added the 🪲 bug Something isn't working label Jan 27, 2021
@jscastro76 jscastro76 added this to the v.2.1.8. milestone Jan 27, 2021
@jscastro76 jscastro76 self-assigned this Jan 27, 2021
jscastro76 added a commit that referenced this issue Jan 27, 2021
- #190 When using `obj.selected` programatically the bbox is not shown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant