renderer: always hash along edges

This commit is contained in:
itsmattkc
2021-09-19 23:11:20 -07:00
parent 67c7c71ca2
commit 7ba5dca4ab
30 changed files with 76 additions and 59 deletions
@@ -204,12 +204,12 @@ void NodeParamArrayAppendCommand::undo()
void NodeSetValueHintCommand::redo()
{
old_hint_ = input_.node()->GetValueHintForInput(input_.input(), input_.element());
input_.node()->SetValueHintForInput(input_.input(), input_.element(), new_hint_);
input_.node()->SetValueHintForInput(input_.input(), new_hint_, input_.element());
}
void NodeSetValueHintCommand::undo()
{
input_.node()->SetValueHintForInput(input_.input(), input_.element(), old_hint_);
input_.node()->SetValueHintForInput(input_.input(), old_hint_, input_.element());
}
}
+1 -1
View File
@@ -76,7 +76,7 @@ void NodeValueTree::RadioButtonChecked(bool e)
Node::ValueHint hint = btn->property("hint").value<Node::ValueHint>();
NodeInput input = btn->property("input").value<NodeInput>();
input.node()->SetValueHintForInput(input.input(), input.element(), hint);
input.node()->SetValueHintForInput(input.input(), hint, input.element());
}
}