File tree Expand file tree Collapse file tree
source/MaterialXGraphEditor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3604,6 +3604,14 @@ void Graph::propertyEditor()
36043604 if (!input->getConnected ())
36053605 {
36063606 showPropertyEditorValue (_currUiNode, input->getInput (), uiProperties);
3607+
3608+ // Update pin to reference the node's input if one was created
3609+ // during editing, so that subsequent frames read the correct value.
3610+ mx::InputPtr nodeInput = _currUiNode->getNode ()->getInput (input->getName ());
3611+ if (nodeInput && nodeInput != input->getInput ())
3612+ {
3613+ input->setElement (nodeInput);
3614+ }
36073615 }
36083616 else
36093617 {
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class UiPin
7979 std::shared_ptr<UiNode> getUiNode () const { return _pinNode; }
8080 ed::PinKind getKind () const { return _kind; }
8181 mx::PortElementPtr getElement () const { return _element; }
82+ void setElement (mx::PortElementPtr element) { _element = element; }
8283 mx::InputPtr getInput () const ;
8384 mx::OutputPtr getOutput () const ;
8485
You can’t perform that action at this time.
0 commit comments