Hi guys,
I have a custom Hydra 2.0 implementation and I encountered a weird bug / unexpected situation.
I have a chain scene indexes that is very close to the one GLEngine is using.
When I opened the first scen, everything is working as expected. But then when I opened another stage, doing
m_stageSceneIndex->SetStage(m_stage);
I indeed see that every prim is removed through the _SendPrimRemoved, but then the HdMergingSceneIndex observer from UsdImaging_PiPrototypeSceneIndex is sending back _SendPrimsAdded with all the previous stage, and I ended up with a merged scene, which is not desired.
I check the usdView implementation and it seems that, when changing the stage, the whole GLEngine is deleted and recreated.
Any idea / recommendation ?
Thanks,
Baptiste