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

Fix graph editor defect for name setting #1431

Closed

Conversation

ZelboK
Copy link

@ZelboK ZelboK commented Jul 27, 2023

The graph editor has a problem where if you highlight the name in the imgui textbox and press the delete key, it will cause a cycle exception. This isn't caught anywhere, thus leading to crashes.

As such, just a simple method that checks if the name is empty(and if it is, fixes it) is enough to avoid this issue.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 27, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

Thanks for this great proposal, @ZelboK, and I've written up a couple of suggestions for changes below.

source/MaterialXGraphEditor/Graph.cpp Outdated Show resolved Hide resolved
source/MaterialXGraphEditor/Graph.h Outdated Show resolved Hide resolved
dbsmythe and others added 5 commits July 30, 2023 15:55
…#1422)

As discussed on Slack, add a line clarifying that an image node will output the first N channels from the image file if the image file has more channels than the image node.

Also updated the link target for the surface_unlit node to conform to naming conventions used in other nodes with underscores in their name.
@ZelboK ZelboK force-pushed the fix/set-name-graph-editor branch from 22a9284 to e3c7e32 Compare July 30, 2023 20:00
@jstone-lucasfilm
Copy link
Member

I wanted to follow up on this proposal, @ZelboK, to see if you have the bandwidth to bring it over the finish line. If so, then there's some discussion above on how to move forward with a broader solution that we can merge. Let us know!

@jstone-lucasfilm
Copy link
Member

Thanks for this original proposal, @ZelboK, and I've incorporated these ideas into a broader fix for multiple issues that could trigger crashes when renaming nodes in the graph editor:

#1501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants