From c7d6d37a8e6eeac87c2b65c678efb3b0d8fd3f6a Mon Sep 17 00:00:00 2001 From: Bruno Date: Mon, 26 Apr 2021 22:06:06 +0200 Subject: [PATCH] oops --- Mixer.cpp | 2 +- Source.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Mixer.cpp b/Mixer.cpp index 1d8b768..0898ec4 100644 --- a/Mixer.cpp +++ b/Mixer.cpp @@ -661,7 +661,7 @@ void Mixer::renameSource(Source *s, const std::string &newname) std::list others = session_->getNameList(); others.remove(tentativename); - // refuse to rename to an empty name + // try the given new name if valid if ( !newname.empty() ) tentativename = newname; diff --git a/Source.cpp b/Source.cpp index e794527..2ca840a 100644 --- a/Source.cpp +++ b/Source.cpp @@ -764,11 +764,8 @@ void Source::setMask(FrameBufferImage *img) // ask to update the source touch(); } - else { - // CANCEL mask if set to null + else mask_need_update_ = false; - maskshader_->mode = MaskShader::NONE; - } } bool Source::hasNode::operator()(const Source* elem) const