Commit c60016a
authored
Improvements to link deletion in Graph Editor (#2816)
This changelist improves the robustness of link deletion in the MaterialX Graph Editor, including the following specific changes:
- Update the pin element reference after creating a new node input in `addLink`, so that `UiPin::getInput` returns the node input rather than a stale reference to the NodeDef input. This fixes subsequent link deletion operating on the wrong element, which occasionally caused the Property Editor to continue displaying a deleted link.
- Move the `ed::AcceptDeletedItem` call from `deleteLink` to its caller in `drawGraph`, so that `deleteLink` is a pure data model operation with no dependency on current ImGui Node Editor state.1 parent 4b980fe commit c60016a
1 file changed
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2458 | 2458 | | |
2459 | 2459 | | |
2460 | 2460 | | |
| 2461 | + | |
2461 | 2462 | | |
2462 | 2463 | | |
2463 | 2464 | | |
| |||
2700 | 2701 | | |
2701 | 2702 | | |
2702 | 2703 | | |
2703 | | - | |
2704 | | - | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
2710 | | - | |
2711 | | - | |
2712 | | - | |
2713 | | - | |
2714 | | - | |
2715 | | - | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
2716 | 2707 | | |
2717 | | - | |
2718 | | - | |
2719 | | - | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
2720 | 2713 | | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
2721 | 2718 | | |
2722 | 2719 | | |
2723 | 2720 | | |
| |||
4458 | 4455 | | |
4459 | 4456 | | |
4460 | 4457 | | |
4461 | | - | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
| 4461 | + | |
4462 | 4462 | | |
4463 | 4463 | | |
4464 | 4464 | | |
| |||
0 commit comments