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

Do not allocate empty callbacks in the RigGeometry #2252

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

akortunov
Copy link
Collaborator

If the getNumChildrenRequiringUpdateTraversal() for node returns 0 and the node has no callbacks, OSG will skip it during update traversal.
As a result, for our RigGeometry objects skeletons will not be initialized properly.
To avoid this issue, we add an empty callback to every RigGeometry object to force OSG to process it during update traversal.

A better way to do it is to use the setNumChildrenRequiringUpdateTraversal() function, which is widely used in OSG examples for the same purpose.

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