fix an issue that Value/Imm emits a value even if 'emit on change' is disabled

This commit is contained in:
falsycat 2022-11-18 12:09:58 +09:00
parent 02d6814eaf
commit 61a97e6a32

View File

@ -411,7 +411,7 @@ void Imm::UpdateNode(nf7::Node::Editor& ed) noexcept {
ImNodes::EndSlot();
}
if (stat.emit) {
if (mem_->autoemit && stat.emit) {
ed.Emit(*this, "out", std::move(*stat.emit));
}
if (stat.mod) {