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

remove visualization from old frame, when the visualization frame is updated #41

Merged
merged 2 commits into from
May 16, 2019

Conversation

planthaber
Copy link
Member

Possibly finally solves:
#29

@planthaber
Copy link
Member Author

When the visualization Frame is changed the main node stayed in the former frame. Thus, the osg geode was displayed in both frames.

This removed the plugin main node from the old frame before adding it to the new one

osg::Group* oldgroup = TransformerGraph::getFrameGroup(*getRootNode(),oldframe.toStdString());
oldgroup->removeChild(vizgroup);


Copy link
Member

Choose a reason for hiding this comment

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

Looks reasonable. Just remove all the new newlines that just muddy the code please.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed them

@doudou doudou merged commit 405114b into master May 16, 2019
@doudou doudou deleted the remove_viz branch May 16, 2019 15:50
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