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

Fix Gizmo Issues #90

Merged
merged 4 commits into from
Jul 25, 2022
Merged

Conversation

Exairnous
Copy link
Contributor

This should fix all the issues with gizmos, plus improve the performance and prevent any performance drain on scenes that aren't using gizmos. I feel it also simplifies the logic in some places. Objects are now linked directly with gizmos for fast lookups and shouldn't become stale because the system is re-initialized on any change, this also means that there is no further use of a dedicated remove gizmo function, so it has been removed. Blender's msgbus system has been employed to trigger a refresh when a gizmo object is renamed (unfortunately bones seem to be too unstable to be subscribed to directly, so a refresh is triggered on any bone rename)

This PR fixes issues:
#83
#84
#85
#86
#87

Removed debug prints.
Removed commented code.
Removed one piece of boilerplate.
Removed one unused import.
@keianhzo keianhzo self-requested a review July 25, 2022 12:45
Copy link
Contributor

@keianhzo keianhzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I haven't experimented with the msg bus too much but it seems reasonable way of conditionally updating objects. Good improvement, thanks!

@keianhzo keianhzo merged commit 4deee55 into Hubs-Foundation:master Jul 25, 2022
@keianhzo
Copy link
Contributor

BTW I just realized that the related issues haven't closed after merging this. I will close them manually. For future reference if you want to close them as a result of merging the PR you have to put Close in front:

https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants