I've implemented a LOP_Subnet node in C++, but when adding other nodes (child) inside the network, they will not affect the number of layers, and the layer count would still remain 0 (2 Attached images showing layer count = 0 and the network inside custom LOP_Subnet).
If I have the same network inside a Subnetwork LOP (Houdini's Utility node), the layer's number would update correctly according to the child nodes inside the Subnetwork, so I am definitely missing something in my implementation.
I believe this has to do with LOP_Node::cookMyLop(OP_Context &) function implementation, but I am not sure what a proper implementation of it would fix what I am looking for, and the documentation for this does not help a lot for this problem. How can I make my custom LOP_Subnet to add the proper layers when adding child nodes in it's network?
Thank you!