renderer: always hash along edges
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user