I’m trying to add a new structure (USD Collection), that should be almost similar to regular Blender’s Collection. Now Blender builds without errors and I can see that my structure is successfully registered and added to struct Main. But if I run Blender, ED_undo_stack_get() function returns NULL and Blender crashes. I’m stuck with this.
Can anyone give me some advice on how to fix it?