Closed flamendless closed 3 years ago
After poking around, I've found out that it is unnecessary to call AutoPositionNode
on loaded nodes since the position saved in the config is enough. So no need for:
if (Nodes::first_load)
{
for (Node* node : Nodes::v_nodes)
ImNodes::AutoPositionNode(node);
Nodes::first_load = false;
}
Good to know its not a bug after all!
I'm saving my nodes to an .ini file. Here's a screenshot before saving:
And here's the content of the .ini saved file:
But everytime I load the node from the ini file. I get inconsistent results. Here are sample of loading them:
For more information, here's a snippet how I save/load the node to the file: