Is it safe to update the scene graph in the viewer camera's
PostDrawCallback?
Background:
I'm using Dear ImGui with OSG. ImGui is 'called' inside the camera's
PostDrawCallback. And I want to use code constructs similar to this:
if (ImGui::Button("Delete Node"))
{
//remove a scene graph node here
}
I suppose since the PostDrawCallback is executed in the rendering
traversal, updating the scene graph here is unsafe? Am I right?
Does using FinalDrawCallback would make a difference?
Kind regards,
Andi
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/osg-users/a53a66ba-9da9-cc79-5f6e-bcb6593c85d6%40gmail.com.