Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't do autolayout if nodegraph has position attributes #69

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/QuiltiX/qx_nodegraph.py
Original file line number Diff line number Diff line change
@@ -751,6 +751,9 @@ def load_graph_from_mx_doc(self, doc):
for mx_graph in doc.getNodeGraphs():
ng_node = self.create_nodegraph_from_mx_nodegraph(mx_graph)
for cur_mx_node in mx_graph.getNodes():
if cur_mx_node.hasAttribute("xpos") and cur_mx_node.hasAttribute("ypos"):
had_pos = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had_pos should probably be tracked per graph, but fine with me until someone complains :D


cur_qx_node = self.create_node_from_mx_node(cur_mx_node, graph=ng_node.get_sub_graph())
# Change value type of node
qx_node_to_mx_node[cur_qx_node] = cur_mx_node